diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-18 09:35:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-21 17:06:01 +0100 |
commit | 068f213bb3203e482334fa2130794c3ff25acb3b (patch) | |
tree | 9c149ef12a596aa90ca9070999155c00f993ad15 /Makefile | |
parent | 5d22cb385695dc17cb226ba63db3c2a253a56bc6 (diff) | |
download | barebox-068f213bb3203e482334fa2130794c3ff25acb3b.tar.gz barebox-068f213bb3203e482334fa2130794c3ff25acb3b.tar.xz |
make: Add bbenv-y target to generate default environment files
This adds a target to generate environment files from directories.
These are compiled into the barebox binary.
use it as:
bbenv-$(CONFIG_SOMETHING) += my-environment
The directory containing the files to compile into the binary
should be named my-environment.
This can be accessed in C code later as:
extern unsigned char __bbenv_my_environment_start[];
extern unsigned char __bbenv_my_environment_end[];
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1022,7 +1022,7 @@ clean: archclean $(clean-dirs) @find . $(RCS_FIND_IGNORE) \ \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ - -o -name '*.symtypes' \) \ + -o -name '*.symtypes' -o -name '*.bbenv.S' -o -name "*.bbenv" \) \ -type f -print | xargs rm -f # mrproper - Delete all generated files, including .config |