[Buildroot] [PATCH v8 09/10] core: install relocation script and location to make a relocatable SDK

Wolfgang Grandegger wg at grandegger.com
Thu Jul 20 14:35:20 UTC 2017


The script "relocate-sdk.sh" is installed into the top directory of
the SDK (HOST_DIR) and the SDK location path is stored in the file
"HOST_DIR/share/buildroot/sdk-location"-

Signed-off-by: Wolfgang Grandegger <wg at grandegger.com>
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index c54c420..ee0ff13 100644
--- a/Makefile
+++ b/Makefile
@@ -558,6 +558,8 @@ sdk: toolchain $(PACKAGES)
 	$(TOPDIR)/support/scripts/fix-rpath host
 	@$(call MESSAGE,"Sanitizing RPATH in staging tree")
 	$(TOPDIR)/support/scripts/fix-rpath staging
+	install $(TOPDIR)/support/misc/relocate-sdk.sh $(HOST_DIR)
+	echo $(HOST_DIR) > $(HOST_DIR)/share/buildroot/sdk-location
 
 # Compatibility symlink in case a post-build script still uses $(HOST_DIR)/usr
 $(HOST_DIR)/usr: $(HOST_DIR)
-- 
2.7.4



More information about the buildroot mailing list