[Buildroot] [PATCH] u-boot: add config option to disable general patches

Markus Heidelberg markus.heidelberg at web.de
Fri Jan 9 16:07:29 UTC 2009


Peter Korsgaard, 09.01.2009:
> >>>>> "Markus" == Markus Heidelberg <markus.heidelberg at web.de> writes:
> 
>  >> (E.G. Linux/U-Boot). Building upstream versions of those rarely make
>  >> sense for custom boards, so having the option to apply custom patches
> 
>  Markus> Which is available, but only in addition to the general patches lying
>  Markus> around.
> 
> Exactly, it should ofcourse be INSTEAD.

Which was the reason for the config option in my patch.

Or do you think of the following, without an additional option? Maybe
this would make sense!?

--- a/target/u-boot/Makefile.in
+++ b/target/u-boot/Makefile.in
@@ -85,13 +85,14 @@ $(U_BOOT_DIR)/.unpacked: $(DL_DIR)/$(U_BOOT_SOURCE)
        touch $@

 $(U_BOOT_DIR)/.patched: $(U_BOOT_DIR)/.unpacked
-       toolchain/patch-kernel.sh $(U_BOOT_DIR) target/u-boot/$(U_BOOT_VERSION) \
-               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)
        toolchain/patch-kernel.sh $(U_BOOT_DIR) $(U_BOOT_PATCH_DIR) \*.patch
+else
+       toolchain/patch-kernel.sh $(U_BOOT_DIR) target/u-boot/$(U_BOOT_VERSION) \
+               u-boot-$(U_BOOT_VERSION)-\*.patch \
+               u-boot-$(U_BOOT_VERSION)-\*.patch.$(ARCH)
 endif
        touch $@




More information about the buildroot mailing list