[Buildroot] [PATCH v8 06/10] core: introduce "sdk" target to make a relocatable SDK
Wolfgang Grandegger
wg at grandegger.com
Thu Jul 20 14:35:17 UTC 2017
We use a separate make target to build a relocatable SDK.
We first sanitize the RPATH in host tree depending on
the toolchain.
Signed-off-by: Wolfgang Grandegger <wg at grandegger.com>
---
Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Makefile b/Makefile
index d4faa02..3019081 100644
--- a/Makefile
+++ b/Makefile
@@ -552,6 +552,11 @@ prepare: $(BUILD_DIR)/buildroot-config/auto.conf
.PHONY: world
world: target-post-image
+.PHONY: sdk
+sdk: toolchain
+ @$(call MESSAGE,"Rendering the SDK relocatable")
+ $(TOPDIR)/support/scripts/fix-rpath host
+
# Compatibility symlink in case a post-build script still uses $(HOST_DIR)/usr
$(HOST_DIR)/usr: $(HOST_DIR)
@ln -snf . $@
@@ -1001,6 +1006,7 @@ help:
@echo 'Build:'
@echo ' all - make world'
@echo ' toolchain - build toolchain'
+ @echo ' sdk - build relocatable SDK'
@echo
@echo 'Configuration:'
@echo ' menuconfig - interactive curses-based configurator'
--
2.7.4
More information about the buildroot
mailing list