diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-20 07:53:01 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-20 07:53:01 +0100 |
commit | 6c79680171b28dc40d24e0d2fe17117164e97495 (patch) | |
tree | 473cb442c43147b9108e7f0c4fdb887e3b1c1ec0 /mk | |
parent | c847620da9e572763586651df9c3543492fa4498 (diff) |
need to use gcc mode thumb, to compile glibc, CFLAGS is not enough
Diffstat (limited to 'mk')
-rw-r--r-- | mk/build.mk | 3 | ||||
-rw-r--r-- | mk/vars.mk | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/mk/build.mk b/mk/build.mk index 101a5aa05..68e63783b 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -122,6 +122,9 @@ POSTCONFIG= -@\ if [ "$$(grep ^ADK_KERNEL_VERSION_ .config|md5sum)" != "$$(grep ^ADK_KERNEL_VERSION_ .config.old|md5sum)" ];then \ make kernelclean;\ fi; \ + if [ "$$(grep ^ADK_LINUX_ARM_WITH_THUMB .config|md5sum)" != "$$(grep ^ADK_LINUX_ARM_WITH_THUMB .config.old|md5sum)" ];then \ + echo "You should make cleantarget, after changing thumb mode";\ + fi; \ if [ $$rebuild -eq 1 ];then \ cp .config .config.old;\ fi; \ diff --git a/mk/vars.mk b/mk/vars.mk index 540d0e03b..8ee67809f 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -87,7 +87,7 @@ TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident $(ADK_TARGET_ABI_CFLAG TARGET_CFLAGS_LIBC:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident $(TARGET_OPTIMIZATION) else TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts $(ADK_TARGET_ABI_CFLAGS) $(MODE_FLAGS) -TARGET_CFLAGS_LIBC:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts $(TARGET_OPTIMIZATION) +TARGET_CFLAGS_LIBC:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts $(TARGET_OPTIMIZATION) $(MODE_FLAGS) endif TARGET_CXXFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident $(MODE_FLAGS) TARGET_LDFLAGS:= -L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib \ |