Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v1] boot/barebox: fix target bareboxenv command compile
@ 2020-01-07 19:50 Peter Seiderer
  2020-10-01 20:03 ` Yann E. MORIN
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Seiderer @ 2020-01-07 19:50 UTC (permalink / raw)
  To: buildroot

The buildroot custom bareboxenv compile command
needs the additional include path 'scripts/include'
to gain access to the local copy of the kernel header
files.

Fixes (with BR2_TARGET_BAREBOX_BAREBOXENV enabled):

  build/barebox-2019.12.0/scripts/bareboxenv.c:100:10: fatal error: linux/list.h: No such file or directory

Reported-by: Frederick Gotham <cauldwell.thomas@gmail.com>
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 boot/barebox/barebox.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/boot/barebox/barebox.mk b/boot/barebox/barebox.mk
index 52178d89c8..67fd125578 100644
--- a/boot/barebox/barebox.mk
+++ b/boot/barebox/barebox.mk
@@ -82,7 +82,8 @@ $(1)_KCONFIG_DEPENDENCIES = \
 
 ifeq ($$(BR2_TARGET_$(1)_BAREBOXENV),y)
 define $(1)_BUILD_BAREBOXENV_CMDS
-	$$(TARGET_CC) $$(TARGET_CFLAGS) $$(TARGET_LDFLAGS) -o $$(@D)/bareboxenv \
+	$$(TARGET_CC) $$(TARGET_CFLAGS) -I$$(@D)/scripts/include \
+		$$(TARGET_LDFLAGS) -o $$(@D)/bareboxenv \
 		$$(@D)/scripts/bareboxenv.c
 endef
 endif
-- 
2.24.1

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

end of thread, other threads:[~2020-10-01 21:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-07 19:50 [Buildroot] [PATCH v1] boot/barebox: fix target bareboxenv command compile Peter Seiderer
2020-10-01 20:03 ` Yann E. MORIN
2020-10-01 21:02   ` Peter Seiderer
2020-10-01 21:08     ` Yann E. MORIN
2020-10-01 21:42       ` Peter Seiderer

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