Browse Source

fix update-rcconf

Waldemar Brodkorb 8 years ago
parent
commit
810f44fbd0
1 changed files with 10 additions and 4 deletions
  1. 10 4
      scripts/update-rcconf

+ 10 - 4
scripts/update-rcconf

@@ -5,16 +5,22 @@
 topdir=$(readlink -nf $(dirname $0)/.. 2>/dev/null || (cd $(dirname $0)/..; pwd -P))
 . $topdir/.config
 
-suffix=${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}_${ADK_TARGET_CPU_ARCH}
+suffix=${ADK_TARGET_SYSTEM}
+if [ ! -z ${ADK_TARGET_ENDIAN_SUFFIX} ];then
+	suffix=${suffix}_${ADK_TARGET_ENDIAN_SUFFIX}
+fi
+if [ ! -z ${ADK_TARGET_LIBC} ];then
+	suffix=${suffix}_${ADK_TARGET_LIBC}
+fi
+if [ ! -z ${ADK_TARGET_CPU_TYPE} ];then
+	suffix=${suffix}_${ADK_TARGET_CPU_TYPE}
+fi
 if [ ! -z ${ADK_TARGET_FLOAT} ];then
 	suffix=${suffix}_${ADK_TARGET_FLOAT}
 fi
 if [ ! -z ${ADK_TARGET_ABI} ];then
 	suffix=${suffix}_${ADK_TARGET_ABI}
 fi
-if [ -z ${ADK_TARGET_WITH_MMU} ];then
-	suffix=${suffix}_nommu
-fi
 
 rcconf=$(ls $topdir/root_${suffix}/etc/rc.conf)