summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--mk/image.mk8
2 files changed, 8 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index e05128c04..c66451c54 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,3 +24,4 @@ make.log
dl/
package/*/info.mk
tools_build/
+extra/
diff --git a/mk/image.mk b/mk/image.mk
index 66aaf8e3e..7c61a137d 100644
--- a/mk/image.mk
+++ b/mk/image.mk
@@ -1,7 +1,13 @@
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
-imageprepare: kernel-install image-prepare-post
+imageprepare: kernel-install image-prepare-post extra-install
+
+# if an extra directory exist in TOPDIR, copy all content over the
+# root directory, do the same if make extra=/dir/to/extra is used
+extra-install:
+ if [ -d $(TOPDIR)/extra ];then $(CP) $(TOPDIR)/extra/* ${TARGET_DIR};fi
+ if [ ! -z $(extra) ];then $(CP) $(extra)/* ${TARGET_DIR};fi
image-prepare-post:
rng=/dev/arandom; test -e $$rng || rng=/dev/urandom; \