Skip to content

Commit 7c0ca0c

Browse files
authored
Use KERNEL_CLASSES to pull in image-related classes (#838)
Rather than clobbering linux-yocto (and linux-yocto-dev) with machine-specific inherits, specify required classes using the KERNEL_CLASSES variable.
2 parents 6665d09 + 97e2d2d commit 7c0ca0c

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

conf/machine/qcom-armv7a.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ QCOM_BOOTIMG_PAGE_SIZE = "2048"
2020
MACHINE_FEATURES += "screen ext2 ext3 opengl usb"
2121

2222
KERNEL_IMAGETYPE ?= "zImage"
23+
24+
# To build an Android boot image
25+
KERNEL_CLASSES += "linux-qcom-bootimg"
26+
2327
KERNEL_DEVICETREE ?= " \
2428
qcom/qcom-apq8064-asus-nexus7-flo.dtb \
2529
qcom/qcom-apq8064-ifc6410.dtb \

conf/machine/qcom-armv8a.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ KERNEL_IMAGETYPE ?= "Image.gz"
2020
# UKI generation needs uncompressed Kernel image
2121
KERNEL_IMAGETYPES = "Image"
2222

23+
# To build an Android boot image
24+
KERNEL_CLASSES += "linux-qcom-bootimg"
25+
26+
# For dtb.bin generation
27+
KERNEL_CLASSES += "linux-qcom-dtbbin"
28+
2329
SERIAL_CONSOLE ?= "115200 ttyMSM0"
2430
KERNEL_DEVICETREE ?= " \
2531
qcom/apq8016-sbc.dtb \

recipes-kernel/linux/linux-yocto_%.bbappend

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,3 @@ FILESEXTRAPATHS:prepend:qcom := "${THISDIR}/${PN}-${BASEVER}:"
99
SRC_URI:append:qcom = " \
1010
file://qcom.scc \
1111
"
12-
13-
# For boot.img
14-
QCOM_BOOTIMG = ""
15-
QCOM_BOOTIMG:qcom = "linux-qcom-bootimg"
16-
inherit ${QCOM_BOOTIMG}
17-
18-
# For dtb.bin
19-
QCOM_DTBBIN = ""
20-
QCOM_DTBBIN:qcom = "linux-qcom-dtbbin"
21-
inherit ${QCOM_DTBBIN}

0 commit comments

Comments
 (0)