aboutsummaryrefslogtreecommitdiff
path: root/package/cdrkit/cdrkit.mk
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2014-09-26 22:13:59 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-09-27 09:42:28 +0200
commit126f258df509c4ff36eb4bc43375e841071bf173 (patch)
treef734ddff71885d09de8c5705d5f8545f52d0c2b7 /package/cdrkit/cdrkit.mk
parenta3fe0fe73d840af1d9f557ddace43397642d6645 (diff)
downloadbuildroot-126f258df509c4ff36eb4bc43375e841071bf173.tar.gz
buildroot-126f258df509c4ff36eb4bc43375e841071bf173.tar.bz2
package/cdrkit: fix namespace of variables
Not all cdrkit variables are prefixed with CDRKIT_, so they leak. Most importantly, they look like they belong to another package's namespace, cmake, as they start with CMAKE_ (but fortunately, they have no impact on cmake, as they are not used by our infras.) Fix that by removing the intermediate variables, and directly set the CDRKIT_CONF_OPT variable. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/cdrkit/cdrkit.mk')
-rw-r--r--package/cdrkit/cdrkit.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/cdrkit/cdrkit.mk b/package/cdrkit/cdrkit.mk
index ee98013e22..7474fffbf2 100644
--- a/package/cdrkit/cdrkit.mk
+++ b/package/cdrkit/cdrkit.mk
@@ -11,13 +11,11 @@ CDRKIT_LICENSE = GPLv2
CDRKIT_LICENSE_FILES = COPYING
ifeq ($(BR2_ENDIAN),"BIG")
-CMAKE_ENDIAN_OPT=-DBITFIELDS_HTOL=1
+CDRKIT_CONF_OPT += -DBITFIELDS_HTOL=1
else
-CMAKE_ENDIAN_OPT=-DBITFIELDS_HTOL=0
+CDRKIT_CONF_OPT += -DBITFIELDS_HTOL=0
endif
-CDRKIT_CONF_OPT += $(CMAKE_ENDIAN_OPT)
-
## cdrkit isn't completely re-rooted by CMAKE_FIND_ROOT_PATH, so add
## some extra flags so it finds needed libs and headers.
CDRKIT_CONF_OPT += -DCMAKE_C_FLAGS="-I$(STAGING_DIR)/usr/include"