linux-smarct335x_3.2.bb 1.03 KB
inherit kernel
require recipes-kernel/linux/linux.inc

DESCRIPTION = "Linux kernel for Embedian SMARC T335X Computer on Modules"
KERNEL_IMAGETYPE = "zImage"
COMPATIBLE_MACHINE = "smarct335x"
DEFAULT_PREFERENCE = "-1"

S = "${WORKDIR}/git"

# Stage the power management firmware before building the kernel
DEPENDS += "am33x-cm3"

BRANCH  = "v3.2_SMARCT335xPSP_04.06.00.11"
#SRCREV = "${AUTOREV}"
# For rev. 00A0, uncomment out the following line.
#SRCREV = "5f08c606d2990bd6b45c5202e9ce6cf36143d84e"
# For rev.00B0 or After
SRCREV = "64aca22977c3cab5a7ec6f4348860f025943ff49"

SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${BRANCH} \
	file://defconfig \
"


PV = "3.2"
MACHINE_KERNEL_PR_append = "c+gitr${SRCPV}"

# UNCOMMENT FOR VERBOSE BUILD OUTPUT: EXTRA_OEMAKE += "V=1"

# Copy the am33x-cm3 firmware if it is available
do_configure_append() {
    if [ -e "${STAGING_DIR_HOST}/${base_libdir}/firmware/am335x-pm-firmware.bin" ]
    then
        cp "${STAGING_DIR_HOST}/${base_libdir}/firmware/am335x-pm-firmware.bin" "${S}/firmware"
    fi
}