mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-05 02:20:30 +00:00
Use += where ever possible instead of append
Exceptions will be cases involving overrides, machine specific varible expansion and cases where variable modification needed to be done after all += operations. Change-Id: I7c76a77949d0a012238d488d5a75c489c54abf68 Signed-off-by: Vineeth Raveendran <vineeth.raveendran@arm.com>
This commit is contained in:
committed by
Bertrand Marquis
parent
c601acec48
commit
aab12c535e
@@ -41,8 +41,8 @@ DISK_IMG_PARTITION4_CONTENT ??= ""
|
||||
DISK_IMG_SECTOR_SIZE ??= "512"
|
||||
|
||||
# We need mkfs.ext and parted tools to create our image (dd is always there)
|
||||
do_image_disk_img[depends] += " e2fsprogs-native:do_populate_sysroot \
|
||||
parted-native:do_populate_sysroot"
|
||||
do_image_disk_img[depends] += "e2fsprogs-native:do_populate_sysroot \
|
||||
parted-native:do_populate_sysroot"
|
||||
|
||||
DISK_IMG_FILE = "${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.disk.img"
|
||||
|
||||
|
||||
@@ -39,8 +39,3 @@ UBOOT_MACHINE = "vexpress_aemv8a_dram_defconfig"
|
||||
|
||||
# Xen configuration
|
||||
XEN_CONFIG_EARLY_PRINTK = "fastmodel"
|
||||
|
||||
# parameters for xen dtb generation in meta-auto
|
||||
XEN_DOM0_BOOTARGS_append = " root=/dev/vda2"
|
||||
XEN_XEN_BOOTARGS_append = " console=dtuart dtuart=serial0 bootscrub=0"
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ IMAGE_FSTYPES += "tar.bz2 ext4"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyAMA0"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += " virtual/gem5-bootloader"
|
||||
EXTRA_IMAGEDEPENDS += "virtual/gem5-bootloader"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
|
||||
PREFERRED_VERSION_linux-yocto ?= "4.19%"
|
||||
|
||||
@@ -25,12 +25,7 @@ EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-a u-boot"
|
||||
# Juno u-boot configuration
|
||||
UBOOT_MACHINE = "vexpress_aemv8a_juno_defconfig"
|
||||
|
||||
DISTRO_FEATURES_append = " usbhost usbgadget"
|
||||
DISTRO_FEATURES += "usbhost usbgadget"
|
||||
|
||||
# Xen configuration
|
||||
XEN_CONFIG_EARLY_PRINTK = "juno"
|
||||
|
||||
# parameters for xen dtb generation in meta-auto
|
||||
XEN_DOM0_BOOTARGS_append = " root=/dev/sda1 rootwait"
|
||||
XEN_XEN_BOOTARGS_append = " console=dtuart dtuart=serial0 bootscrub=0 iommu=no"
|
||||
|
||||
|
||||
@@ -35,30 +35,30 @@ BOOT_WRAPPER_AARCH64_XEN_CMDLINE ??= "noreboot dom0_mem=256M"
|
||||
BOOT_WRAPPER_AARCH64_IMAGE ?= "${@bb.utils.contains('DISTRO_FEATURES', 'xen', \
|
||||
'xen-system.axf', 'linux-system.axf', d)}"
|
||||
|
||||
DEPENDS += " virtual/kernel dtc-native"
|
||||
DEPENDS += "virtual/kernel dtc-native"
|
||||
|
||||
EXTRA_OECONF_append = " --with-kernel-dir=${WORKDIR}/kernel"
|
||||
EXTRA_OECONF_append = " --with-dtb=${WORKDIR}/kernel/dummy.dtb"
|
||||
EXTRA_OECONF_append = " --with-cmdline=\"\""
|
||||
EXTRA_OECONF_append = " --enable-psci --enable-gicv3"
|
||||
EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'xen', \
|
||||
EXTRA_OECONF += "--with-kernel-dir=${WORKDIR}/kernel"
|
||||
EXTRA_OECONF += "--with-dtb=${WORKDIR}/kernel/dummy.dtb"
|
||||
EXTRA_OECONF += "--with-cmdline=\"\""
|
||||
EXTRA_OECONF += "--enable-psci --enable-gicv3"
|
||||
EXTRA_OECONF += " ${@bb.utils.contains('DISTRO_FEATURES', 'xen', \
|
||||
'--with-xen=${WORKDIR}/kernel/arch/arm64/boot/Image', '', d)}"
|
||||
EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'xen', \
|
||||
EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'xen', \
|
||||
'--with-xen-cmdline=\"\"', '', d)}"
|
||||
|
||||
# unset LDFLAGS solves this error when compiling kernel modules:
|
||||
# aarch64-poky-linux-ld: unrecognized option '-Wl,-O1'
|
||||
EXTRA_OEMAKE_append = " 'LDFLAGS= --gc-sections '"
|
||||
EXTRA_OEMAKE += "'LDFLAGS= --gc-sections '"
|
||||
|
||||
# Strip prefix if any
|
||||
REAL_DTB = "${@os.path.basename(d.getVar('BOOT_WRAPPER_AARCH64_DEVICETREE'))}"
|
||||
|
||||
EXTRA_OEMAKE_append = " 'KERNEL_DTB=${DEPLOY_DIR_IMAGE}/${REAL_DTB}'"
|
||||
EXTRA_OEMAKE_append = " 'KERNEL_IMAGE=${DEPLOY_DIR_IMAGE}/${BOOT_WRAPPER_AARCH64_KERNEL}'"
|
||||
EXTRA_OEMAKE_append = " 'CMDLINE=${BOOT_WRAPPER_AARCH64_CMDLINE}'"
|
||||
EXTRA_OEMAKE_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'xen', \
|
||||
EXTRA_OEMAKE += "'KERNEL_DTB=${DEPLOY_DIR_IMAGE}/${REAL_DTB}'"
|
||||
EXTRA_OEMAKE += "'KERNEL_IMAGE=${DEPLOY_DIR_IMAGE}/${BOOT_WRAPPER_AARCH64_KERNEL}'"
|
||||
EXTRA_OEMAKE += "'CMDLINE=${BOOT_WRAPPER_AARCH64_CMDLINE}'"
|
||||
EXTRA_OEMAKE += "${@bb.utils.contains('DISTRO_FEATURES', 'xen', \
|
||||
'XEN_IMAGE=${DEPLOY_DIR_IMAGE}/${BOOT_WRAPPER_AARCH64_XEN}', '', d)}"
|
||||
EXTRA_OEMAKE_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'xen', \
|
||||
EXTRA_OEMAKE += "${@bb.utils.contains('DISTRO_FEATURES', 'xen', \
|
||||
'XEN_CMDLINE=\"${BOOT_WRAPPER_AARCH64_XEN_CMDLINE}\"', '', d)}"
|
||||
|
||||
|
||||
@@ -77,10 +77,10 @@ do_compile[noexec] = "1"
|
||||
do_install[noexec] = "1"
|
||||
|
||||
# We need the kernel to create an image
|
||||
do_deploy[depends] += " virtual/kernel:do_deploy"
|
||||
do_deploy[depends] += "virtual/kernel:do_deploy"
|
||||
|
||||
# We need xen if it is activated
|
||||
do_deploy[depends] += " ${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'xen:do_deploy', '', d)}"
|
||||
do_deploy[depends] += "${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'xen:do_deploy', '', d)}"
|
||||
|
||||
do_deploy() {
|
||||
if [ ! -f ${DEPLOY_DIR_IMAGE}/${REAL_DTB} ]; then
|
||||
|
||||
@@ -20,7 +20,7 @@ do_install() {
|
||||
install -d ${D}${bindir}
|
||||
}
|
||||
FILES_${PN} = "${datadir}/fvp/* ${bindir}/*"
|
||||
INSANE_SKIP_${PN}_append = "already-stripped"
|
||||
INSANE_SKIP_${PN} += "already-stripped"
|
||||
|
||||
# This is required so that our binaries are in the sysroot. We need this
|
||||
# to have both fvp required libraries and fvp in the same sysroot.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
GEM5_BUILD_CONFIGS ?= "build/ARM/gem5.opt build/ARM/gem5.fast \
|
||||
build/ARM/gem5.debug"
|
||||
|
||||
SRC_URI += " file://start-gem5.sh"
|
||||
SRC_URI += "file://start-gem5.sh"
|
||||
|
||||
inherit deploy
|
||||
|
||||
|
||||
@@ -24,9 +24,8 @@ inherit native pythonnative
|
||||
# google protobuf
|
||||
# pkgconfig
|
||||
# hdf5
|
||||
DEPENDS_append = " python-native python-scons-native python-six-native \
|
||||
protobuf-native hdf5-native pkgconfig-native boost-native \
|
||||
libpng-native"
|
||||
DEPENDS += "python-native python-scons-native python-six-native \
|
||||
protobuf-native hdf5-native pkgconfig-native boost-native libpng-native"
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}:${THISDIR}/files:"
|
||||
|
||||
# Arm platforms kmeta
|
||||
SRC_URI_append = " file://arm-platforms-kmeta;type=kmeta;name=arm-platforms-kmeta;destsuffix=arm-platforms-kmeta"
|
||||
SRC_URI += "file://arm-platforms-kmeta;type=kmeta;name=arm-platforms-kmeta;destsuffix=arm-platforms-kmeta"
|
||||
|
||||
#
|
||||
# FVP FOUNDATION KMACHINE
|
||||
|
||||
Reference in New Issue
Block a user