summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-core/classes')
-rw-r--r--meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass12
-rw-r--r--meta-xilinx-core/classes/xilinx-deprecated.bbclass7
-rw-r--r--meta-xilinx-core/classes/xilinx-vars.bbclass9
3 files changed, 12 insertions, 16 deletions
diff --git a/meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass b/meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass
index 0b826ee2..b4de5ee1 100644
--- a/meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass
+++ b/meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass
@@ -39,18 +39,18 @@ CONVERSION_CMD:qemu-sd-fatimg () {
39 parted -s ${QEMU_IMG} set 1 boot on 39 parted -s ${QEMU_IMG} set 1 boot on
40 parted ${QEMU_IMG} print 40 parted ${QEMU_IMG} print
41 BOOT_BLOCKS=$(LC_ALL=C parted -s ${QEMU_IMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') 41 BOOT_BLOCKS=$(LC_ALL=C parted -s ${QEMU_IMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }')
42 rm -f ${UNPACKDIR}/${BOOT_VOLUME_ID}.img 42 rm -f ${WORKDIR}/${BOOT_VOLUME_ID}.img
43 mkfs.vfat -n "${BOOT_VOLUME_ID}" -S 512 -C ${UNPACKDIR}/${BOOT_VOLUME_ID}.img $BOOT_BLOCKS 43 mkfs.vfat -n "${BOOT_VOLUME_ID}" -S 512 -C ${WORKDIR}/${BOOT_VOLUME_ID}.img $BOOT_BLOCKS
44 if [ -e ${DEPLOY_DIR_IMAGE}/boot.bin ]; then 44 if [ -e ${DEPLOY_DIR_IMAGE}/boot.bin ]; then
45 mcopy -i ${UNPACKDIR}/${BOOT_VOLUME_ID}.img -s ${DEPLOY_DIR_IMAGE}/boot.bin ::/ 45 mcopy -i ${WORKDIR}/${BOOT_VOLUME_ID}.img -s ${DEPLOY_DIR_IMAGE}/boot.bin ::/
46 fi 46 fi
47 if [ -e ${DEPLOY_DIR_IMAGE}/boot.scr ]; then 47 if [ -e ${DEPLOY_DIR_IMAGE}/boot.scr ]; then
48 mcopy -i ${UNPACKDIR}/${BOOT_VOLUME_ID}.img -s ${DEPLOY_DIR_IMAGE}/boot.scr ::/ 48 mcopy -i ${WORKDIR}/${BOOT_VOLUME_ID}.img -s ${DEPLOY_DIR_IMAGE}/boot.scr ::/
49 fi 49 fi
50 if [ ${INITRAMFS_IMAGE} = ${IMAGE_BASENAME} ] && [ x"${INITRAMFS_IMAGE_BUNDLE}" != "x1" ]; then 50 if [ ${INITRAMFS_IMAGE} = ${IMAGE_BASENAME} ] && [ x"${INITRAMFS_IMAGE_BUNDLE}" != "x1" ]; then
51 mcopy -i ${UNPACKDIR}/${BOOT_VOLUME_ID}.img -s ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ::rootfs.cpio.gz.u-boot 51 mcopy -i ${WORKDIR}/${BOOT_VOLUME_ID}.img -s ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ::rootfs.cpio.gz.u-boot
52 fi 52 fi
53 dd if=${UNPACKDIR}/${BOOT_VOLUME_ID}.img of=${QEMU_IMG} conv=notrunc seek=1 bs=$(expr ${IMAGE_ALIGNMENT} \* 1024) 53 dd if=${WORKDIR}/${BOOT_VOLUME_ID}.img of=${QEMU_IMG} conv=notrunc seek=1 bs=$(expr ${IMAGE_ALIGNMENT} \* 1024)
54} 54}
55 55
56CONVERSION_DEPENDS_qemu-sd = "qemu-system-native" 56CONVERSION_DEPENDS_qemu-sd = "qemu-system-native"
diff --git a/meta-xilinx-core/classes/xilinx-deprecated.bbclass b/meta-xilinx-core/classes/xilinx-deprecated.bbclass
index 1aee2fe1..788b963e 100644
--- a/meta-xilinx-core/classes/xilinx-deprecated.bbclass
+++ b/meta-xilinx-core/classes/xilinx-deprecated.bbclass
@@ -9,10 +9,15 @@ python xilinx_deprecated_config_eventhandler () {
9 if d.getVar('BOARD') or d.getVar('BOARD_VARIANT'): 9 if d.getVar('BOARD') or d.getVar('BOARD_VARIANT'):
10 bb.error("Deprecated BOARD (%s) or BOARD_VARIANT (%s) is being used, they are no longer supported and are ignored." % (d.getVar('BOARD'), d.getVar('BOARD_VARIANT'))) 10 bb.error("Deprecated BOARD (%s) or BOARD_VARIANT (%s) is being used, they are no longer supported and are ignored." % (d.getVar('BOARD'), d.getVar('BOARD_VARIANT')))
11 11
12 # Check for 'generic' machines, warn the user this isn't what they want
13 if d.getVar('MACHINE').endswith('-generic'):
14 bb.warn('The %s machine is intended to be included by other machines, it should not be used by itself. For a non-machine, SoC specific filesystem, please use one of the common machines defined in meta-xilinx-core.' % d.getVar('MACHINE'))
15
12 msg_list = d.getVarFlags('XILINX_DEPRECATED') or [] 16 msg_list = d.getVarFlags('XILINX_DEPRECATED') or []
13 for msg_source in msg_list: 17 for msg_source in msg_list:
14 if msg_source == "doc": 18 if msg_source == "doc":
15 continue 19 continue
16 msg = d.getVarFlag('XILINX_DEPRECATED', msg_source) or "" 20 msg = d.getVarFlag('XILINX_DEPRECATED', msg_source) or ""
17 bb.warn('%s: %s' % (msg_source, msg)) 21 if msg:
22 bb.warn('%s: %s' % (msg_source, msg))
18} 23}
diff --git a/meta-xilinx-core/classes/xilinx-vars.bbclass b/meta-xilinx-core/classes/xilinx-vars.bbclass
index 19cf8771..e19918ca 100644
--- a/meta-xilinx-core/classes/xilinx-vars.bbclass
+++ b/meta-xilinx-core/classes/xilinx-vars.bbclass
@@ -6,15 +6,6 @@ xilinx_variables_config_eventhandler[eventmask] = "bb.event.ConfigParsed"
6# It's up to the base sytem to define the variables being used here, we're 6# It's up to the base sytem to define the variables being used here, we're
7# only going to check them. 7# only going to check them.
8python xilinx_variables_config_eventhandler () { 8python xilinx_variables_config_eventhandler () {
9 # Verify HDF_MACHINE
10 hdf_prior = d.getVar('HDF_MACHINE_PRIOR')
11 hdf_final = d.getVar('HDF_MACHINE')
12
13 if hdf_prior and hdf_prior != hdf_final:
14 bb.fatal("HDF_MACHINE is set to %s, it appears you intended %s. " \
15 "This is usually as a result of specifying it in the local.conf or before the 'require' in the machine .conf file. " \
16 "See meta-xilinx-core/conf/machine/README." % (hdf_final, hdf_prior))
17
18 # Verify DEFAULTTUNE 9 # Verify DEFAULTTUNE
19 tune_prior = d.getVar('DEFAULTTUNE_PRIOR') 10 tune_prior = d.getVar('DEFAULTTUNE_PRIOR')
20 tune_final = d.getVar('DEFAULTTUNE') 11 tune_final = d.getVar('DEFAULTTUNE')