diff options
author | Jo-Philipp Wich <jo@mein.io> | 2017-01-27 13:41:04 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-01-27 16:53:31 +0100 |
commit | 7d57db4d9be2e8c8e72108c0b8702029ba8c70de (patch) | |
tree | 94f10ee0918cf0e61638a1560eb93a7712db1721 /target | |
parent | 6db7a013bd155c4c5e681464883eee60b20ea7fa (diff) | |
download | upstream-7d57db4d9be2e8c8e72108c0b8702029ba8c70de.tar.gz upstream-7d57db4d9be2e8c8e72108c0b8702029ba8c70de.tar.bz2 upstream-7d57db4d9be2e8c8e72108c0b8702029ba8c70de.zip |
build: introduce STAGING_DIR_IMAGE
Introduce a new location STAGING_DIR_IMAGE which is intended to be used by
bootloader iamges and similar image-related artifacts.
This directory is guaranteed to be persistent across kernel upgrades which
might involve a removal of KERNEL_BUILD_DIR and is guranteed to be bundled
with the image builder.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target')
-rw-r--r-- | target/imagebuilder/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile index d891aab18c..f9dd61c031 100644 --- a/target/imagebuilder/Makefile +++ b/target/imagebuilder/Makefile @@ -18,6 +18,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(IB_NAME) IB_KDIR:=$(patsubst $(TOPDIR)/%,$(PKG_BUILD_DIR)/%,$(KERNEL_BUILD_DIR)) IB_LDIR:=$(patsubst $(TOPDIR)/%,$(PKG_BUILD_DIR)/%,$(LINUX_DIR)) IB_DTSDIR:=$(patsubst $(TOPDIR)/%,$(PKG_BUILD_DIR)/%,$(LINUX_DIR))/arch/$(ARCH)/boot/dts/ +IB_IDIR:=$(patsubst $(TOPDIR)/%,$(PKG_BUILD_DIR)/%,$(STAGING_DIR_IMAGE)) all: compile @@ -78,6 +79,8 @@ endif $(SED) 's,^# REVISION:=.*,REVISION:=$(REVISION),g' $(PKG_BUILD_DIR)/include/version.mk find $(PKG_BUILD_DIR) -name CVS -o -name .git -o -name .svn \ | $(XARGS) rm -rf + $(INSTALL_DIR) $(IB_IDIR) + -$(CP) $(STAGING_DIR_IMAGE)/* $(IB_IDIR)/ $(INSTALL_DIR) $(PKG_BUILD_DIR)/staging_dir/host/bin $(CP) $(STAGING_DIR_HOST)/bin/* $(PKG_BUILD_DIR)/staging_dir/host/bin/ (cd $(PKG_BUILD_DIR); find staging_dir/host/bin/ $(IB_LDIR)/scripts/dtc/ -type f | \ |