summaryrefslogtreecommitdiff
path: root/package/cdrkit/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-06-04 11:15:57 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-04 12:18:48 +0200
commitf9a5bb2bf7efb7d32814fb5ed2c66489d27ceed5 (patch)
tree4dcae5cbe62006230063a9f0b823a09486b06781 /package/cdrkit/Makefile
parent9f0e8cf6c907bb9ddb36d32d234bf49abd248380 (diff)
set endian mode correctly
Diffstat (limited to 'package/cdrkit/Makefile')
-rw-r--r--package/cdrkit/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/cdrkit/Makefile b/package/cdrkit/Makefile
index 45adc5712..e4c483bfe 100644
--- a/package/cdrkit/Makefile
+++ b/package/cdrkit/Makefile
@@ -25,6 +25,12 @@ $(eval $(call PKG_template,CDRKIT,cdrkit,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEP
CONFIG_STYLE:= cmake
CMAKE_FLAGS+= -DUSE_LIBC_NLS=1 -DUSE_LIBXNET=0 -DUSE_LIBNLS=0
+ifeq ($(ADK_TARGET_ENDIAN),little)
+CMAKE_FLAGS+= -DBITFIELDS_HTOL=0
+else
+CMAKE_FLAGS+= -DBITFIELDS_HTOL=1
+endif
+
cdrkit-install:
$(INSTALL_DIR) $(IDIR_CDRKIT)/usr/bin
$(INSTALL_BIN) $(WRKINST)/usr/bin/* \