Skip to contentSkip to conversation

uboot: add COPY_OLD_LICENSE_FILE fix to rsync hook

PATCH New Erico Nunes 2 participants 2 messages Dec 29, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uboot: add COPY_OLD_LICENSE_FILE fix to rsync hook

make legal-info breaks when using an older u-boot version in local.mk with OVERRIDE_SRCDIR, due to the reorganization of license files which happened in u-boot v2013.10.
This issue had already been fixed in Buildroot for the regular use of old u-boot versions (non-local.mk).
This patch adds the same fix to UBOOT_POST_RSYNC_HOOKS so that it also covers the local.mk case.

---
 boot/uboot/uboot.mk | 1 +
 1 file changed, 1 insertion(+)
boot/uboot/uboot.mk +1 -0
index 868bf08..c8c50f0 100644
@@ -110,6 +110,7 @@ define UBOOT_COPY_OLD_LICENSE_FILE
 endef
 
 UBOOT_POST_EXTRACT_HOOKS += UBOOT_COPY_OLD_LICENSE_FILE
+UBOOT_POST_RSYNC_HOOKS += UBOOT_COPY_OLD_LICENSE_FILE
 
 # Prior to Buildroot 2015.05, only patch directories were supported. New
 # configurations use BR2_TARGET_UBOOT_PATCH instead.
Signature · 1 line
2.6.4
#1 lore raw

PATCH 1/1 uboot: add COPY_OLD_LICENSE_FILE fix to rsync hook

Dear Erico Nunes,

Quoted 8 lines · Erico Nunes

make legal-info breaks when using an older u-boot version in local.mk with OVERRIDE_SRCDIR, due to the reorganization of license files which happened in u-boot v2013.10.
This issue had already been fixed in Buildroot for the regular use of old u-boot versions (non-local.mk).
This patch adds the same fix to UBOOT_POST_RSYNC_HOOKS so that it also covers the local.mk case.

Quoted 4 lines
---
 boot/uboot/uboot.mk | 1 +
 1 file changed, 1 insertion(+)

I am not super happy with having to duplicate all extract and patch hooks as rsync hooks. The theory is that if you use a <pkg>_OVERRIDE_SRCDIR, you should know what you're doing, and your source tree should match the expectations of Buildroot.

But oh well, it kind of makes sense to help in this case, so I've applied your patch. Still there is an open discussion on where to draw the line for those post rsync hooks.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com