From 7a126246d2a5bfbfdef61691d814846b70ae3082 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 13 Nov 2009 19:48:31 +0100 Subject: new feature extra dir - you can now overwrite your target root dir files with either - creating a directory extra/ and put a complet file hierarchy into it - creating a directory anywhere and using make extra=/path/to/dir both methods will copy the file hierarchy over root dir and then will create images and tar balls. useful for overwriten default configuration or adding non packaged software like java runtime environment. suggested by Joerg S. --- mk/image.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mk') 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; \ -- cgit v1.2.3