u-boot: support platform-independent patches

Support platform independent patches (.patch) and use .patch.$ARCH for
platform dependent ones like elsewhere.
This commit is contained in:
Peter Korsgaard 2008-04-23 14:52:38 +00:00
parent a40d635ec0
commit d8dcacdab1

View File

@ -47,7 +47,8 @@ $(U_BOOT_DIR)/.unpacked: $(DL_DIR)/$(U_BOOT_SOURCE)
$(U_BOOT_DIR)/.patched: $(U_BOOT_DIR)/.unpacked
toolchain/patch-kernel.sh $(U_BOOT_DIR) target/u-boot/ \
u-boot-$(U_BOOT_VERSION)-$(BR2_ARCH)-\*.patch\*
u-boot-$(U_BOOT_VERSION)-\*.patch \
u-boot-$(U_BOOT_VERSION)-\*.patch.$(ARCH)
ifneq ($(strip $(BR2_TARGET_UBOOT_CUSTOM_PATCH)),"")
@mkdir -p $(U_BOOT_PATCH_DIR)
cp -dpr $(BR2_TARGET_UBOOT_CUSTOM_PATCH) $(U_BOOT_PATCH_DIR)