Ver código fonte

use separate dirs for soft-float/hard-float toolchains

Waldemar Brodkorb 9 anos atrás
pai
commit
074e136444
2 arquivos alterados com 7 adições e 8 exclusões
  1. 1 0
      mk/build.mk
  2. 6 8
      mk/vars.mk

+ 1 - 0
mk/build.mk

@@ -185,6 +185,7 @@ ifeq ($(ADK_TARGET_PACKAGE_OPKG),y)
 endif
 
 ${STAGING_TARGET_DIR} ${STAGING_TARGET_DIR}/etc ${STAGING_HOST_DIR}:
+	echo ${STAGING_TARGET_DIR}
 	@mkdir -p ${STAGING_TARGET_DIR}/{bin,etc,lib,usr/bin,usr/include,usr/lib/pkgconfig} \
 		${STAGING_HOST_DIR}/{usr/bin,usr/lib,usr/include}
 	@for i in lib64 lib32 libx32;do \

+ 6 - 8
mk/vars.mk

@@ -9,17 +9,15 @@ INSTALL_SCRIPT=		install -m0755
 MAKEFLAGS=		$(EXTRA_MAKEFLAGS)
 BUILD_USER=		$(shell id -un)
 BUILD_GROUP=		$(shell id -gn)
-ifeq ($(ADK_TARGET_ABI),)
 ADK_SUFFIX:=		_${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}_${ADK_TARGET_CPU_ARCH}
-ifeq ($(ADK_TARGET_WITH_MMU),)
-ADK_SUFFIX:=		_${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}_${ADK_TARGET_CPU_ARCH}_nommu
+ifneq ($(ADK_TARGET_FLOAT),)
+ADK_SUFFIX:=		$(ADK_SUFFIX)_$(ADK_TARGET_FLOAT)
 endif
-else
-ifeq ($(ADK_TARGET_WITH_MMU),)
-ADK_SUFFIX:=		_${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}_${ADK_TARGET_CPU_ARCH}_${ADK_TARGET_ABI}_nommu
-else
-ADK_SUFFIX:=		_${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}_${ADK_TARGET_CPU_ARCH}_${ADK_TARGET_ABI}
+ifneq ($(ADK_TARGET_ABI),)
+ADK_SUFFIX:=		$(ADK_SUFFIX)_$(ADK_TARGET_ABI)
 endif
+ifeq ($(ADK_TARGET_WITH_MMU),)
+ADK_SUFFIX:=		$(ADK_SUFFIX)_nommu
 endif
 
 # some global dirs