From f9a5bb2bf7efb7d32814fb5ed2c66489d27ceed5 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 4 Jun 2015 11:15:57 +0200 Subject: set endian mode correctly --- package/cdrkit/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'package/cdrkit/Makefile') 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/* \ -- cgit v1.2.3