summaryrefslogtreecommitdiffstats
path: root/common/startup.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-02-17 19:09:03 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-19 11:30:26 +0100
commite9241844a8103b62775040cdb35c09002e904fb5 (patch)
treec79f5d7a93e8d88b9d98c947147048fda3a69bce /common/startup.c
parent925e5b4b94ed498be87322f7164d2f34373433b6 (diff)
downloadbarebox-e9241844a8103b62775040cdb35c09002e904fb5.tar.gz
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 'common/startup.c')
-rw-r--r--common/startup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/startup.c b/common/startup.c
index e8b9ea0..4bc5628 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -52,7 +52,7 @@ static int register_default_env(void)
int ret;
void *defaultenv;
- if (IS_ENABLED(CONFIG_DEFAULT_ENVIRONMENT_COMPRESSED)) {
+ if (!IS_ENABLED(CONFIG_DEFAULT_COMPRESSION_NONE)) {
void *tmp = malloc(default_environment_size);
if (!tmp)