Advertisement
Guest User

Untitled

a guest
Nov 14th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. #### My config ####
  2. meta-neotion$ grep IMAGE_FEATURES conf/distro/neotion.conf recipes-core/images/neotion-ottgw-*
  3. conf/distro/neotion.conf:IMAGE_FEATURES[validitems] += "nfsroot swupdate"
  4. conf/distro/neotion.conf:IMAGE_FEATURES += "nfsroot swupdate"
  5. recipes-core/images/neotion-dev.bb:IMAGE_FEATURES_remove = "swupdate"
  6. recipes-core/images/neotion-prod.bb:IMAGE_FEATURES_remove = "nfsroot"
  7.  
  8. #### In u-boot-fw-utils .bbappend, i have the following snippet of code ####
  9.  
  10. do_install_append () {
  11. install -d ${DEPLOYDIR}
  12. install -m 755 ${WORKDIR}/boot.ini ${DEPLOYDIR}
  13.  
  14. # Debug:
  15. bbwarn "IMAGE_FEATURES = ${IMAGE_FEATURES}"
  16.  
  17. # Prepend nfs=y nfsroot=...
  18. NFSROOT="${@bb.utils.contains('IMAGE_FEATURES', 'nfsroot', "1", "0", d)}"
  19. if [ "${NFSROOT}" = 1 ]; then
  20. bbwarn "nfsroot is set in IMAGE_FEATURES, adapting boot.init..."
  21. if [ -z "${NFSROOT_PATH}" ]; then
  22. bberror "NFSROOT_PATH not set in build/conf/local.conf, boot.ini will be bogus !"
  23. else
  24. sed -i -e "s#\(ODROIDC2-UBOOT-CONFIG\)#\1\nsetenv nfs \"y\"\nsetenv nfsroot_path \"${NFSROOT_PATH}\"\n#" ${DEPLOYDIR}/boot.ini
  25. fi
  26. else
  27. bbwarn "nfsroot is NOT set in IMAGE_FEATURES, leaving boot.init untouched..."
  28. fi
  29.  
  30. }
  31.  
  32. #### What i run ####
  33. bitbake u-boot-fw-utils:do_cleanall # to make sure bitbake rebuild it
  34. bitbake -DD -v neotion-dev 2>&1 |tee output.log # To save the whole output
  35.  
  36. #### And it fails ###
  37. ~/Work/Fontaine/t55/build-dev$ grep IMAGE_FEA output.log
  38. u-boot-fw-utils-v2015.01+gitAUTOINC+2fcbc68e05-r0 do_install: + bbwarn IMAGE_FEATURES = nfsroot swupdate debug-tweaks
  39. + printf %b\0 bbwarn IMAGE_FEATURES = nfsroot swupdate debug-tweaks
  40. + bbwarn nfsroot is set in IMAGE_FEATURES, adapting boot.init...
  41. + printf %b\0 bbwarn nfsroot is set in IMAGE_FEATURES, adapting boot.init...
  42. WARNING: u-boot-fw-utils-v2015.01+gitAUTOINC+2fcbc68e05-r0 do_install: IMAGE_FEATURES = nfsroot swupdate debug-tweaks
  43. WARNING: u-boot-fw-utils-v2015.01+gitAUTOINC+2fcbc68e05-r0 do_install: nfsroot is set in IMAGE_FEATURES, adapting boot.init...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement