config: check if GLUON_DEBUG is 1 rather than nonempty

This commit is contained in:
Matthias Schiffer 2018-01-26 00:03:00 +01:00
parent a99fdf7919
commit faceb3932c
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
2 changed files with 4 additions and 5 deletions

View File

@ -35,12 +35,12 @@ $(GLUON_SITEDIR)/site.mk:
include $(GLUON_SITEDIR)/site.mk
GLUON_WLAN_MESH ?= 11s
GLUON_RELEASE ?= $(error GLUON_RELEASE not set. GLUON_RELEASE can be set in site.mk or on the command line)
GLUON_WLAN_MESH ?= 11s
GLUON_DEBUG ?= 0
export GLUON_RELEASE GLUON_WLAN_MESH GLUON_REGION GLUON_DEBUG
export GLUON_RELEASE GLUON_REGION GLUON_WLAN_MESH GLUON_DEBUG
show-release:
@echo '$(GLUON_RELEASE)'

View File

@ -24,8 +24,7 @@ config 'CONFIG_PACKAGE_ATH_DEBUG=y'
try_config 'CONFIG_TARGET_MULTI_PROFILE=y'
try_config 'CONFIG_TARGET_PER_DEVICE_ROOTFS=y'
if [ "$GLUON_DEBUG" ]
then
if [ "$GLUON_DEBUG" = 1 ]; then
config 'CONFIG_DEBUG=y'
config 'CONFIG_NO_STRIP=y'
config '# CONFIG_USE_STRIP is not set'