diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-17 19:09:03 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-19 11:30:26 +0100 |
commit | e9241844a8103b62775040cdb35c09002e904fb5 (patch) | |
tree | c79f5d7a93e8d88b9d98c947147048fda3a69bce /Makefile | |
parent | 925e5b4b94ed498be87322f7164d2f34373433b6 (diff) | |
download | barebox-e9241844a8103b62775040cdb35c09002e904fb5.tar.gz barebox-e9241844a8103b62775040cdb35c09002e904fb5.tar.xz |
Kconfig: Select default compression type
Instead of asking explicitly for the default environment compression
type ask for the in-barebox default compression type. This also adds
a DEFAULT_COMPRESSION_SUFFIX make variable which can be used together
with the wildcard rules for compressed files to generate compressed
files without explicitly support each compression type.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -504,6 +504,23 @@ barebox-alldirs := $(sort $(barebox-dirs) $(patsubst %/,%,$(filter %/, \ pbl-common-y := $(patsubst %/, %/built-in-pbl.o, $(common-y)) common-y := $(patsubst %/, %/built-in.o, $(common-y)) +ifeq ($(CONFIG_DEFAULT_COMPRESSION_GZIP),y) +DEFAULT_COMPRESSION_SUFFIX := .gz +endif +ifeq ($(CONFIG_DEFAULT_COMPRESSED_BZIP2),y) +DEFAULT_COMPRESSION_SUFFIX := .bz2 +endif +ifeq ($(CONFIG_DEFAULT_COMPRESSION_LZO),y) +DEFAULT_COMPRESSION_SUFFIX := .lzo +endif +ifeq ($(CONFIG_DEFAULT_COMPRESSION_LZ4),y) +DEFAULT_COMPRESSION_SUFFIX := .lz4 +endif +ifeq ($(CONFIG_DEFAULT_COMPRESSION_NONE),y) +DEFAULT_COMPRESSION_SUFFIX := +endif +export DEFAULT_COMPRESSION_SUFFIX + # Build barebox # --------------------------------------------------------------------------- # barebox is built from the objects selected by $(barebox-init) and |