Skip to content

Commit

Permalink
Restore allarch after addition of MULTILIB
Browse files Browse the repository at this point in the history
commit b840fe8 added multilib to the openxt-main distro, but an
unnoticed side effect was that allarch no longer worked.
allarch.bbclass doesn't set PACKAGE_ARCH to "all" when MULTILIB_VARIANTS
is set, so the rest of allarch.bbclass doesn't take effect.

Work around this by manually setting PACKAGE_ARCH="all" and then
inheriting allarch.  There could be a problem if any of these packages
depended on further arch specific packages, but none of ours do.

Wrap it into the small multilib-allarch.bbclass to centralize the
change.

Signed-off-by: Jason Andryuk <[email protected]>
  • Loading branch information
jandryuk committed Dec 9, 2020
1 parent 7c175ad commit c71f927
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 18 deletions.
6 changes: 6 additions & 0 deletions classes/multilib-allarch.bbclass
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Since we have multilib enabled for xen, regular allarch doesn't take affect
# and the packages use the default tune. Setting PACKAGE_ARCH forces allarch
# like we want.
PACKAGE_ARCH = "all"

inherit allarch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SRC_URI = " \
file://populate-certs.sh \
"

inherit allarch update-rc.d
inherit multilib-allarch update-rc.d

do_install () {
install -d ${D}/usr/bin
Expand Down
2 changes: 1 addition & 1 deletion recipes-core/initrdscripts/initramfs-stubdomain_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SRC_URI = " \
file://init.sh \
"

inherit allarch
inherit multilib-allarch

do_install() {
install -m 0755 ${WORKDIR}/init.sh ${D}/init
Expand Down
2 changes: 1 addition & 1 deletion recipes-core/udev/udev-extraconf-dom0_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SRC_URI = " \
file://50-usb-powersave.rules \
"

inherit allarch
inherit multilib-allarch

do_install() {
install -d ${D}${sysconfdir}/udev/rules.d
Expand Down
2 changes: 1 addition & 1 deletion recipes-devtools/bats-suite/bats-suite_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SRCREV = "${AUTOREV}"

S = "${WORKDIR}/git"

inherit allarch
inherit multilib-allarch

do_install () {
if [ -e "${S}/dom0" ]; then
Expand Down
2 changes: 1 addition & 1 deletion recipes-devtools/bats/bats_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SRCREV = "03608115df2071fff4eaaff1605768c275e5f81f"

S = "${WORKDIR}/git"

inherit allarch
inherit multilib-allarch

do_install () {
${S}/install.sh ${D}/${exec_prefix}
Expand Down
2 changes: 1 addition & 1 deletion recipes-extended/rsyslog/rsyslog-conf-dom0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DESCRIPTION = "db tools"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM="file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

inherit allarch
inherit multilib-allarch

SRC_URI = "file://rsyslog.conf"

Expand Down
2 changes: 1 addition & 1 deletion recipes-kernel/linux-firmware/linux-firmware_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware

S = "${WORKDIR}/git"

inherit allarch update-alternatives
inherit multilib-allarch update-alternatives

# OE started complaining about the architecture of the binaries for some reason
INSANE_SKIP = "arch"
Expand Down
2 changes: 1 addition & 1 deletion recipes-openxt/argo/argo-module-headers_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require argo.inc

S = "${WORKDIR}/git/argo-linux"

inherit allarch
inherit multilib-allarch

do_install() {
oe_runmake INSTALL_HDR_PATH=${D}${prefix} headers_install
Expand Down
2 changes: 1 addition & 1 deletion recipes-openxt/idl/xenclient-idl_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require idl.inc

S = "${WORKDIR}/git"

inherit allarch
inherit multilib-allarch

do_install() {
install -m 0755 -d ${D}${idldatadir}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SRC_URI = " \

S = "${WORKDIR}"

inherit allarch
inherit multilib-allarch

do_install() {
install -m 0755 -d ${D}${sysconfdir}/udev
Expand Down
2 changes: 1 addition & 1 deletion recipes-openxt/xen-tap-scripts/xen-tap-scripts_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SRC_URI = " \

S = "${WORKDIR}"

inherit allarch
inherit multilib-allarch

do_install() {
install -m 0755 -d ${D}${sysconfdir}/udev
Expand Down
2 changes: 1 addition & 1 deletion recipes-openxt/xen-vif-scripts/xen-vif-scripts-dom0_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SRC_URI = " \

S = "${WORKDIR}"

inherit allarch
inherit multilib-allarch

do_install() {
install -m 0755 -d ${D}${sysconfdir}/udev
Expand Down
2 changes: 1 addition & 1 deletion recipes-openxt/xen-vif-scripts/xen-vif-scripts-ndvm_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SRC_URI = " \

S = "${WORKDIR}"

inherit allarch
inherit multilib-allarch

do_install() {
install -m 0755 -d ${D}${sysconfdir}/udev
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SRC_URI = " \

S = "${WORKDIR}/git"

inherit allarch deploy
inherit multilib-allarch deploy

do_install () {
${S}/install part1 ${D}/install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SRC_URI = "file://${REPO_PROD_CACERT} \
FILES_${PN} = "${datadir}/xenclient/repo-certs \
${bindir}/verify-repo-metadata"

inherit allarch
inherit multilib-allarch

do_install() {
CERTDIR_PROD=${D}${datadir}/xenclient/repo-certs/prod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ SRC_URI = " \
file://keyboard \
"

inherit allarch
inherit multilib-allarch

do_install () {
install -d ${D}/root/.config/xfce4
Expand Down
2 changes: 1 addition & 1 deletion recipes-security/selinux/selinux-load_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SRC_URI = " \

S = "${WORKDIR}"

inherit allarch
inherit multilib-allarch

do_install() {
install -d ${D}/sbin
Expand Down
2 changes: 1 addition & 1 deletion recipes-support/lvm2/lvm2-conf-initramfs_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda

SRC_URI = "file://lvm.conf"

inherit allarch
inherit multilib-allarch
# The lvm2 recipe in openembedded-core uses multilib_script and MULTILIB_SCRIPTS
# to handle installation of lvm.conf, and doing so here ensures that the file
# is packaged in a compatible way.
Expand Down

0 comments on commit c71f927

Please sign in to comment.