some cleanup of unused recipes, and some adjustments to assist with ARM testing
This commit is contained in:
1 parent
271eb1a93f
commit
0b0b033991
18 files changed
+111
-273
No files matched your search
@@ -14,7 +14,11 @@ IMAGE_INSTALL = " \
|
||||
packagegroup-wr-base-discrete-tools \
|
||||
packagegroup-core-boot \
|
||||
packagegroup-plcos-core \
|
||||
rt-tests \
|
||||
hwlatdetect \
|
||||
grub-efi \
|
||||
grub \
|
||||
grub-bootconf \
|
||||
tuned \
|
||||
openplc \
|
||||
rt-setup \
|
||||
@@ -29,9 +33,10 @@ IMAGE_INSTALL = " \
|
||||
LABELS_LIVE = "install boot"
|
||||
inherit wrlinux-image
|
||||
inherit rtopts
|
||||
inherit grub-efi
|
||||
#inherit image_types
|
||||
|
||||
#############################################################
|
||||
#IMAGE_FEATURES += " package-management wr-core-db wr-core-interactive wr-core-net wr-core-perl wr-core-python wr-core-sys-util wr-core-util wr-core-mail wr-bsps "
|
||||
|
||||
# ssh-server-openssh
|
||||
|
||||
@@ -39,7 +44,6 @@ DISTRO_FEATURES += " polkit "
|
||||
IMAGE_FEATURES += " splash package-management"
|
||||
#IMAGE_FEATURES += " ssh-server-dropbear hwcodecs "
|
||||
#CORE_IMAGE_BASE_INSTALL += " openssh"
|
||||
#linuxcnc linuxcnc-doc"
|
||||
|
||||
#DEPENDS += " cdrtools-native"
|
||||
|
||||
@@ -50,17 +54,61 @@ IMAGE_FSTYPES += "wic wic.bmap"
|
||||
|
||||
inherit extrausers
|
||||
|
||||
IMAGE_EFI_BOOT_FILES:append := "${KERNEL_IMAGETYPE}-*"
|
||||
IMAGE_BOOT_FILES:append := "${KERNEL_IMAGETYPE}-*"
|
||||
IMAGE_EFI_BOOT_FILES:append := " ${KERNEL_IMAGETYPE}-*"
|
||||
#IMAGE_EFI_BOOT_FILES:append := "${KERNEL_IMAGETYPE}-*"
|
||||
IMAGE_BOOT_FILES:append := " ${KERNEL_IMAGETYPE}-*"
|
||||
IMAGE_BOOT_FILES:append := " startup.nsh"
|
||||
#TODO reference GRUB_IMAGE destination name via variables, otherwise this could break possible future 32 bit builds
|
||||
#BOOT_EFI =
|
||||
IMAGE_BOOT_FILES:append:rpi = " \
|
||||
grub.cfg;EFI/BOOT/grub.cfg \
|
||||
bootaa64.efi;EFI/BOOT/bootaa64.efi \
|
||||
${EFI_PROVIDER}-bootaa64.efi;EFI/BOOT/bootaa64.efi \
|
||||
"
|
||||
# ${EFI_PROVIDER}-bootaa64.efi:EFI/BOOT/bootaa64.efi
|
||||
#IMAGE_EFI_BOOT_FILES:append := " boot"
|
||||
do_bootimg[depends] += "dosfstools-native:do_populate_sysroot \
|
||||
mtools-native:do_populate_sysroot \
|
||||
cdrtools-native:do_populate_sysroot \
|
||||
virtual/kernel:do_deploy \
|
||||
"
|
||||
#${@'%s:do_image_%s' % (d.getVar('PN'), d.getVar('LIVE_ROOTFS_TYPE').replace('-', '_').split('.')[0]) if d.getVar('ROOTFS') else ''}
|
||||
|
||||
python do_bootimg:prepend() {
|
||||
build_efi() {
|
||||
#populate_kernel ${EFIIMGDIR}
|
||||
|
||||
#if [ "${EFI}" = "1" ]; then
|
||||
# efi_populate ${EFIIMGDIR}
|
||||
#fi
|
||||
EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
|
||||
printf 'fs0:%s\%s\n' "$EFIPATH" "${EFI_BOOT_IMAGE}" >${DEPLOY_DIR_IMAGE}/startup.nsh
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
python do_bootimg:rpi() {
|
||||
pass
|
||||
}
|
||||
|
||||
#python do_bootimg:arm-uefi() {
|
||||
# bb.build.exec_func('build_efi_cfg', d)
|
||||
# bb.build.exec_func('build_efi', d)
|
||||
# bb.build.exec_func('create_symlinks', d)
|
||||
#}
|
||||
|
||||
#for some reason, adding my override (arm-uefi) to "python do_bootimg" causes bitbake to interpret the function as shell script, not as python.
|
||||
#Since I don't have time for none of that, I'm just doing this in my own python function for non-x86 architectures
|
||||
#(x86 is the only one that supports syslinux, which is a build requirement for OE's 'live' image classes, even for EFI-only images)
|
||||
python do_build_boot() {
|
||||
pass
|
||||
}
|
||||
python do_build_boot:arm-uefi() {
|
||||
bb.build.exec_func('build_efi_cfg', d)
|
||||
bb.build.exec_func('build_efi', d)
|
||||
bb.build.exec_func('create_symlinks', d)
|
||||
}
|
||||
|
||||
python do_bootimg:prepend:x86-64() {
|
||||
#import os
|
||||
import glob
|
||||
deploy_dir = d.getVar("DEPLOY_DIR_IMAGE")
|
||||
@@ -74,25 +122,8 @@ python do_bootimg:prepend() {
|
||||
for file in files:
|
||||
os.system("install -m 644 -t " + iso_dir + " " + file + " | install -m 644 -t " + hdd_dir + " " + file )
|
||||
}
|
||||
python do_image:append() {
|
||||
# try:
|
||||
# os.system("ln -s /boot/EFI/BOOT " + d.getVar("ROOTFS") + "/boot/grub")
|
||||
# except E:
|
||||
# pass
|
||||
}
|
||||
efi_iso_populate:append() {
|
||||
# if [ ! -e "${EFIIMGDIR}/grub" ] ; then
|
||||
# ln -s /boot/EFI/BOOT "${EFIIMGDIR}/grub"
|
||||
# fi
|
||||
}
|
||||
addtask build_boot before do_image_complete after do_rootfs
|
||||
#do_image_wic[recrdeptask] += " do_bootimg"
|
||||
#do_bootimg[depends] += " ${INITRD_IMAGE_LIVE}:do_image_complete"
|
||||
|
||||
|
||||
#below breaks something, it tries to make the file even when it already exists
|
||||
efi_populate:append() {
|
||||
# if [ ! -e "${DEST}/grub" ] ; then
|
||||
# ln -s /boot/EFI/BOOT "${DEST}/grub"
|
||||
# fi
|
||||
}
|
||||
populate_kernel:append() {
|
||||
#mv $dest/${KERNEL_IMAGETYPE} $dest/${KERNEL_IMAGETYPE}-
|
||||
}
|
||||
#hostname:pn-base-files = "plc"
|
||||
@@ -35,16 +35,6 @@ DISTRO = "plcos-graphics"
|
||||
|
||||
IMAGE_FEATURES += " \
|
||||
hwcodecs \
|
||||
ssh-server-openssh \
|
||||
wr-core-db \
|
||||
wr-core-interactive \
|
||||
wr-core-net \
|
||||
wr-core-perl \
|
||||
wr-core-python \
|
||||
wr-core-sys-util \
|
||||
wr-core-util \
|
||||
wr-core-mail \
|
||||
wr-bsps \
|
||||
"
|
||||
|
||||
|
||||
|
||||
@@ -21,15 +21,6 @@ inherit rtopts
|
||||
IMAGE_FEATURES += " \
|
||||
package-management \
|
||||
ssh-server-openssh \
|
||||
wr-core-db \
|
||||
wr-core-interactive \
|
||||
wr-core-net \
|
||||
wr-core-perl \
|
||||
wr-core-python \
|
||||
wr-core-sys-util \
|
||||
wr-core-util \
|
||||
wr-core-mail \
|
||||
wr-bsps \
|
||||
"
|
||||
|
||||
|
||||
|
||||
@@ -24,15 +24,6 @@ PACKAGES = "\
|
||||
"
|
||||
|
||||
RDEPENDS:packagegroup-core-boot-wrs = "\
|
||||
base-files \
|
||||
base-passwd \
|
||||
busybox \
|
||||
${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${VIRTUAL-RUNTIME_initscripts}", "", d)} \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
|
||||
modutils-initscripts \
|
||||
netbase \
|
||||
${VIRTUAL-RUNTIME_login_manager} \
|
||||
${VIRTUAL-RUNTIME_init_manager} \
|
||||
${VIRTUAL-RUNTIME_dev_manager} \
|
||||
${VIRTUAL-RUNTIME_update-alternatives} \
|
||||
"
|
||||
@@ -5,13 +5,10 @@ WR_MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
|
||||
ALLOW_EMPTY:packagegroup-wr-boot = "1"
|
||||
RDEPENDS:packagegroup-wr-boot = "${PN} ${WR_MACHINE_ESSENTIAL_EXTRA_RDEPENDS}"
|
||||
|
||||
# add wr-init
|
||||
RDEPENDS:${PN}:append = " ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','wr-init','',d)}"
|
||||
|
||||
# Need these, but images may choose to pull them from various
|
||||
# packages, e.g. busybox or bash+busybox-oe-min.
|
||||
# The following only works with the RPM backend...
|
||||
FILERDEPENDS_${PN} = "/bin/sh /usr/bin/run-parts /sbin/start-stop-daemon /sbin/ifup"
|
||||
|
||||
# override the default in package-core-boot.bb
|
||||
EFI_PROVIDER ??= "${@bb.utils.contains('INCOMPATIBLE_LICENSE', 'GPL-3.0-only', '', 'grub-efi', d)}"
|
||||
#EFI_PROVIDER ??= "${@bb.utils.contains('INCOMPATIBLE_LICENSE', 'GPL-3.0-only', '', 'grub-efi', d)}"
|
||||
@@ -18,7 +18,6 @@ PACKAGES += "${PN}-discrete-tools ${PN}-discrete-tools-dbg ${PN}-discrete-tools-
|
||||
# packagegroup-core-initscripts and packagegroup-core-basic-utils:
|
||||
VIRTUAL-RUNTIME_syslog ?= "sysklogd"
|
||||
RDEPENDS:${PN} = "\
|
||||
acl \
|
||||
attr \
|
||||
bash \
|
||||
bc \
|
||||
@@ -37,7 +36,6 @@ RDEPENDS:${PN} = "\
|
||||
procps \
|
||||
psmisc \
|
||||
sed \
|
||||
sudo \
|
||||
${VIRTUAL-RUNTIME_syslog} \
|
||||
tar \
|
||||
time \
|
||||
@@ -48,9 +46,11 @@ RDEPENDS:${PN} = "\
|
||||
util-linux-fstrim \
|
||||
util-linux-hwclock \
|
||||
util-linux-logger \
|
||||
vim \
|
||||
which \
|
||||
"
|
||||
# acl
|
||||
# sudo
|
||||
# vim
|
||||
|
||||
# Minimal network environment
|
||||
RDEPENDS:${PN}-net = "\
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
SUMMARY = "Packages required by bsp"
|
||||
|
||||
#
|
||||
# packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH
|
||||
#
|
||||
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
|
||||
BSP_EXTRAS_PACKAGES ?= ""
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
PACKAGES = ' \
|
||||
packagegroup-wr-bsps \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "parser", "packagegroup-wr-bsps-parser", "", d)} \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "shell-tools", "packagegroup-wr-bsps-shell-tools", "", d)} \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "filesystem", "packagegroup-wr-bsps-filesystem-tools", "", d)} \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "profile", "packagegroup-wr-bsps-profile-tools", "", d)} \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "network", "packagegroup-wr-bsps-network-tools", "", d)} \
|
||||
\
|
||||
${@bb.utils.contains("DISTRO_FEATURES", "bsp-extras", "packagegroup-wr-bsps-bsp-extras", "", d)} \
|
||||
'
|
||||
|
||||
#
|
||||
# packagegroup-wr-bsps contain stuff needed by BSPs (machine related)
|
||||
#
|
||||
RDEPENDS:packagegroup-wr-bsps = "\
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "parser", "packagegroup-wr-bsps-parser", "", d)} \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "shell-tools", "packagegroup-wr-bsps-shell-tools", "", d)} \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "filesystem", "packagegroup-wr-bsps-filesystem-tools", "", d)} \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "profile", "packagegroup-wr-bsps-profile-tools", "", d)} \
|
||||
${@bb.utils.contains("MACHINE_FEATURES", "network", "packagegroup-wr-bsps-network-tools", "", d)} \
|
||||
\
|
||||
${@bb.utils.contains("DISTRO_FEATURES", "bsp-extras", "packagegroup-wr-bsps-bsp-extras", "", d)} \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-wr-bsps-parser = "Parser Generator Support"
|
||||
RDEPENDS:packagegroup-wr-bsps-parser = "\
|
||||
flex \
|
||||
bison"
|
||||
|
||||
SUMMARY:packagegroup-wr-bsps-shell-tools = "Shell tools support"
|
||||
RDEPENDS:packagegroup-wr-bsps-shell-tools = "\
|
||||
dialog"
|
||||
|
||||
SUMMARY:packagegroup-wr-bsps-filesystem-tools = "Filesystem tools support"
|
||||
RDEPENDS:packagegroup-wr-bsps-filesystem-tools = "\
|
||||
fio \
|
||||
smartmontools"
|
||||
|
||||
SUMMARY:packagegroup-wr-bsps-profile-tools = "Profile tools support"
|
||||
RDEPENDS:packagegroup-wr-bsps-profile-tools = "\
|
||||
${@bb.utils.contains('INCOMPATIBLE_LICENSE', 'GPL-3.0-only', '', 'perf', d)}"
|
||||
|
||||
SUMMARY:packagegroup-wr-bsps-network-tools = "Network tools support"
|
||||
RDEPENDS:packagegroup-wr-bsps-network-tools = "\
|
||||
iperf3"
|
||||
|
||||
SUMMARY:packagegroup-wr-bsps-bsp-extras = "BSP related extras devices tools"
|
||||
RDEPENDS:packagegroup-wr-bsps-bsp-extras = "\
|
||||
${BSP_EXTRAS_PACKAGES} \
|
||||
"
|
||||
@@ -1,19 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2012-2013 Wind River Systems Inc.
|
||||
#
|
||||
# This package matches a FEATURE_PACKAGES_packagegroup-wr-core-db definition in
|
||||
# wrlinux-image.bbclass that may be used to customize an image by
|
||||
# adding "wr-core-db" to IMAGE_FEATURES.
|
||||
#
|
||||
|
||||
DESCRIPTION = "Wind River Linux core package group: db"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
|
||||
RDEPENDS:${PN} = " \
|
||||
db \
|
||||
sqlite3 \
|
||||
"
|
||||
@@ -1,23 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2012-2013 Wind River Systems Inc.
|
||||
#
|
||||
# This package matches a FEATURE_PACKAGES_packagegroup-wr-core-perl definition in
|
||||
# wrlinux-image.bbclass that may be used to customize an image by
|
||||
# adding "wr-core-perl" to IMAGE_FEATURES.
|
||||
#
|
||||
|
||||
DESCRIPTION = "Wind River Linux core package group: perl"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
PR = "r1"
|
||||
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
|
||||
RDEPENDS:${PN} = " \
|
||||
perl \
|
||||
perl-misc \
|
||||
perl-modules \
|
||||
perl-pod \
|
||||
"
|
||||
Reference in new issue
Block a user