Explorar el Código

try to fix noMMU targets

Waldemar Brodkorb hace 6 años
padre
commit
035f5af977
Se han modificado 2 ficheros con 7 adiciones y 0 borrados
  1. 4 0
      mk/build.mk
  2. 3 0
      scripts/update-rcconf

+ 4 - 0
mk/build.mk

@@ -468,6 +468,10 @@ defconfig: .menu $(CONFIG)/conf
 			|sed -e "s#^config \(.*\)#\1=y#" \
 			>> $(ADK_TOPDIR)/.defconfig; \
 	fi
+	@if [ ! -z "$(ADK_TARGET_MMU)" ];then \
+		printf "# ADK_TARGET_WITH_MMU is not set\n" \
+			>> $(ADK_TOPDIR)/.defconfig; \
+	fi
 	@if [ ! -z "$(ADK_TARGET_LIBC)" ];then \
 		libc=$$(echo "$(ADK_TARGET_LIBC)"|sed -e "s/-/_/"); \
 		grep "^config" target/config/Config.in.libc \

+ 3 - 0
scripts/update-rcconf

@@ -30,6 +30,9 @@ fi
 if [ ! -z ${ADK_TARGET_BINFMT} ];then
 	suffix=${suffix}_${ADK_TARGET_BINFMT}
 fi
+if [ -z ${ADK_TARGET_WITH_MMU} ];then
+	suffix=${suffix}_nommu
+fi
 
 rcconf=$(ls $topdir/root_${suffix}/etc/rc.conf)