Advertisement
Guest User

Untitled

a guest
Mar 16th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. # [doc] "Creates an image for use with VMware or VirtualBox compatible virtual machine hosts (based on IMAGE_FSTYPES either .vmdk or .vdi)"
  2. # $SOC_DEFAULT_IMAGE_FSTYPES [2 operations]
  3. SOC_DEFAULT_IMAGE_FSTYPES="sdcard.gz"
  4. # "${@bb.utils.contains_any("IMAGE_FSTYPES", ["vmdk", "vdi", "qcow2", "hdddirect"], "image-vm", "", d)}"
  5. # $IMAGE_FSTYPES_DEBUGFS [2 operations]
  6. # "${IMAGE_FSTYPES}"
  7. # "${IMAGE_FSTYPES}"
  8. IMAGE_FSTYPES_DEBUGFS="tar.bz2"
  9. # $IMAGE_FSTYPES [6 operations]
  10. # "${SOC_DEFAULT_IMAGE_FSTYPES}"
  11. IMAGE_FSTYPES="tar.bz2"
  12. # $SOC_DEFAULT_IMAGE_FSTYPES_mxs
  13. SOC_DEFAULT_IMAGE_FSTYPES_mxs="uboot.mxsboot-sdcard sdcard.gz"
  14. # " ${@bb.utils.contains('IMAGE_FSTYPES', 'uboot.mxsboot-sdcard', 'uboot.mxsboot-sdcard', '', d)} ${@bb.utils.contains('IMAGE_FSTYPES', 'barebox.mxsboot-sdcard', 'barebox.mxsboot-sdcard', '', d)} "
  15. # " ${@d.getVar('SDCARD_ROOTFS', 1).split('.')[-1]} ${@bb.utils.contains('IMAGE_FSTYPES', 'uboot.mxsboot-sdcard', 'uboot.mxsboot-sdcard', '', d)} ${@bb.utils.contains('IMAGE_FSTYPES', 'barebox.mxsboot-sdcard', 'barebox.mxsboot-sdcard', '', d)} "
  16. # [doc] "Configures the UBOOT_MACHINE and can also define IMAGE_FSTYPES for individual cases."
  17. # "${@bb.utils.contains_any('IMAGE_FSTYPES', 'wic ' + ' '.join('wic.%s' % c for c in '${COMPRESSIONTYPES}'.split()), '1', '', d)}"
  18. debugfs_image_fstypes = d.getVar('IMAGE_FSTYPES_DEBUGFS', True)
  19. d.setVar('IMAGE_FSTYPES', debugfs_image_fstypes)
  20. 'IMAGE_ROOTFS_MAXSIZE','IMAGE_NAME','IMAGE_LINK_NAME','IMAGE_MANIFEST','DEPLOY_DIR_IMAGE','RM_OLD_IMAGE','IMAGE_FSTYPES','IMAGE_INSTALL_COMPLEMENTARY','IMAGE_LINGUAS',
  21. image_fstypes = d.getVar('IMAGE_FSTYPES', True) or ''
  22. fstypes = set((d.getVar('IMAGE_FSTYPES', True) or "").split())
  23. fstypes |= set((d.getVar('IMAGE_FSTYPES_DEBUGFS', True) or "").split())
  24. alltypes = d.getVar('IMAGE_FSTYPES', True).split()
  25. debugfs_fstypes = d.getVar('IMAGE_FSTYPES_DEBUGFS', True).split()
  26. bb.fatal("No IMAGE_CMD defined for IMAGE_FSTYPES entry '%s' - possibly invalid type name or missing support class" % t)
  27. if bb.utils.contains("IMAGE_FSTYPES", "live", "live", "0", d) == "0": # live is not set but hob might set iso or hddimg
  28. d.setVar('NOISO', bb.utils.contains('IMAGE_FSTYPES', "iso", "0", "1", d))
  29. d.setVar('NOHDD', bb.utils.contains('IMAGE_FSTYPES', "hddimg", "0", "1", d))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement