M7350/oe-core/meta-msm/recipes/lk/lk_git.bb

47 lines
1.3 KiB
BlitzBasic
Raw Normal View History

2024-09-09 08:52:07 +00:00
inherit deploy
DESCRIPTION = "Little Kernel bootloader"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/\
${LICENSE};md5=0835ade698e0bcf8506ecda2f7b4f302"
HOMEPAGE = "https://www.codeaurora.org/gitweb/quic/la?p=kernel/lk.git"
PROVIDES = "virtual/bootloader"
2024-09-09 08:57:42 +00:00
FILESPATH =+ "${WORKSPACE}:"
SRC_URI = "file://bootable/bootloader/lk/"
S = "${WORKDIR}/bootable/bootloader/${PN}"
PR = "r15"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
PACKAGE_ARCH = "${MACHINE_ARCH}"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
#LK requires BASEMACHINE to be mdm9640 to support one source multiple targets.
BASEMACHINE = "mdm9640"
2024-09-09 08:52:07 +00:00
MY_TARGET = "${BASEMACHINE}"
2024-09-09 08:57:42 +00:00
MY_TARGET_apq8009 = "msm8909"
MY_TARGET_mdm9607 = "mdm9607"
MY_TARGET_mdm9607-perf = "mdm9607"
MY_TARGET_mdm9607-psm = "mdm9607"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
LIBGCC = "${STAGING_LIBDIR}/${TARGET_SYS}/4.9.2/libgcc.a"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
EXTRA_OEMAKE = "${MY_TARGET} TOOLCHAIN_PREFIX='${TARGET_PREFIX}' LIBGCC='${LIBGCC}'"
#EXTRA_OEMAKE += " SIGNED_KERNEL=1"
2024-09-09 08:52:07 +00:00
do_install() {
2024-09-09 08:57:42 +00:00
install -d ${D}/boot
install build-${MY_TARGET}/*.mbn ${D}/boot
2024-09-09 08:52:07 +00:00
}
FILES_${PN} = "/boot"
2024-09-09 08:57:42 +00:00
FILES_${PN}-dbg = "/boot/.debug"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
do_deploy() {
install ${S}/build-${MY_TARGET}/*.mbn ${DEPLOYDIR}
2024-09-09 08:52:07 +00:00
}
2024-09-09 08:57:42 +00:00
2024-09-09 08:52:07 +00:00
do_deploy[dirs] = "${S} ${DEPLOYDIR}"
addtask deploy before do_build after do_install
PACKAGE_STRIP = "no"