Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] uboot: add COPY_OLD_LICENSE_FILE fix to rsync hook
@ 2015-12-29  2:27 Erico Nunes
  2015-12-29 11:26 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Erico Nunes @ 2015-12-29  2:27 UTC (permalink / raw)
  To: buildroot

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.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
---
 boot/uboot/uboot.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 868bf08..c8c50f0 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -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.
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] uboot: add COPY_OLD_LICENSE_FILE fix to rsync hook
  2015-12-29  2:27 [Buildroot] [PATCH 1/1] uboot: add COPY_OLD_LICENSE_FILE fix to rsync hook Erico Nunes
@ 2015-12-29 11:26 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-12-29 11:26 UTC (permalink / raw)
  To: buildroot

Dear Erico Nunes,

On Tue, 29 Dec 2015 00:27:30 -0200, Erico Nunes wrote:
> 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.
> 
> Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
> ---
>  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
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-29 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-29  2:27 [Buildroot] [PATCH 1/1] uboot: add COPY_OLD_LICENSE_FILE fix to rsync hook Erico Nunes
2015-12-29 11:26 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox