multi-kernel.inc: the current fetcher2 in yocto started having a glitch, so fix it up
[glsdk/meta-ti-glsdk.git] / recipes-bsp / linux / multi-kernel.inc
index be2b3b0a91a77cc0e2d9aa8792a99c08fd531856..d34994fc17a092157318ddf03bdbbad2ae09f897 100644 (file)
@@ -23,11 +23,20 @@ EXTRA_OEMAKE = "${PARALLEL_MAKE} "
 
 do_compileconfigs () {
 
+  # fixup for fetcher change
+  if [ -e ${WORKDIR}/configs/configs ] ; then
+      if [ -e ${WORKDIR}/configs/configs/.empty ] ; then
+          mv ${WORKDIR}/configs/configs/.empty ${WORKDIR}/configs/
+      fi
+      mv ${WORKDIR}/configs/configs/* ${WORKDIR}/configs/
+      rm -rf ${WORKDIR}/configs/configs
+  fi
+
   # Compile and Install additional kernel configs if found
   if [ -e ${WORKDIR}/configs/.empty ] ; then
        echo "No configs found in configs/ directory, skipping to regular build"
   else
-       echo "Multiple configs found, building those first"
+      echo "Multiple configs found, building those first"
 
       # Context Save the regular 'defconfig'
       cp ${WORKDIR}/defconfig ${WORKDIR}/defconfig.save
@@ -78,6 +87,8 @@ do_compileconfigs () {
 # For reference, copy .config to deploy image
 do_deploy_append () {
 
+       install -d ${DEPLOY_DIR_IMAGE}
+
     # Drop the regular defconfig along side the others for consistency
     cd ${S}
     cp .config ${DEPLOY_DIR_IMAGE}/config-${PV}-${PR}-${MACHINE}.config