summaryrefslogtreecommitdiff
path: root/mk/build.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-03-21 00:26:05 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-03-21 06:57:41 +0100
commit263bba08cb03659c1e1d54b43ae8c9c18d67b77a (patch)
treeedef79b77b387edb95024c2f1de5c89c7e850e6f /mk/build.mk
parent0bb7e3f588f5727390259df1644edf19f15f608f (diff)
rework kernel build process, changes to kernelconfig are reflected now
Cleanup the package directory which is always used as intermediate step to build in the default some xz compressed archives with all package data. While reconfiguring the kernel mini.config or custom config changes to the firmware did not happen always. Some targets where redundant and the install step tries to compile, too. Be more quiet with any cpio usage.
Diffstat (limited to 'mk/build.mk')
-rw-r--r--mk/build.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 0b4b9feee..69ff9e3d8 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -176,7 +176,7 @@ ifeq ($(ADK_TARGET_OS_BAREMETAL),y)
$(MAKE) -f mk/build.mk package/hostcompile toolchain/final
endif
ifeq ($(ADK_TARGET_OS_LINUX),y)
- $(MAKE) -f mk/build.mk package/hostcompile toolchain/final target/config-prepare target/compile package/compile root_clean package/install target/install package_index
+ $(MAKE) -f mk/build.mk package/hostcompile toolchain/final target/config-prepare target/compile package_clean package/compile root_clean package/install target/install package_index
endif
endif
@@ -252,6 +252,10 @@ newpackage:
$(SED) 's#@VER@#$(VER)#' $(ADK_TOPDIR)/package/$(PKG)/Makefile
@echo "Edit package/$(PKG)/Makefile to complete"
+package_clean:
+ rm -rf $(PACKAGE_DIR)
+ mkdir -p $(PACKAGE_DIR)
+
root_clean:
rm -rf $(TARGET_DIR)
mkdir -p $(TARGET_DIR)