Skip to contentSkip to conversation

upstream: Add support for building upstream

PATCH NAK Ryan Eatmon 4 participants 5 messages Oct 18, 2022 – Oct 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 upstream: Add support for building upstream

We want to start running upstream testing on a daily basis and reporting the reuslts of our test plan. To do that we need some recipes that point to the upstream of the repositories that need to be tracked.

---
 .../u-boot/u-boot-ti-upstream_git.bb          | 19 +++++
 .../linux/linux-ti-upstream_git.bb            | 75 +++++++++++++++++++
 2 files changed, 94 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-upstream_git.bb
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-upstream_git.bb new file +19 -0
new file mode 100644
index 00000000..52c3c293
@@ -0,0 +1,19 @@
+require u-boot-ti.inc
+
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
+
+PR = "r0"
+
+PV = "upstream"
+
+# For the un-initiated:
+# The actual URL you'd use with a git clone for example would be:
+# https://source.denx.de/u-boot/u-boot.git/
+# However, in the context of OE, we have to explicitly split things up:
+# a) we want it to use git fetcher - hence git:// prefix in GIT_URI (if we
+#  used https here, we'd endup attempting wget instead of git)
+# b) and we want git fetcher to use https protocol, hence GIT_PROTOCOL as https
+UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git"
+UBOOT_GIT_PROTOCOL = "https"
+SRCREV = "${AUTOREV}"
+
meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb new file +75 -0

75 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw
Quoted 43 lines · Ryan Eatmon via lists.yoctoproject.org

We want to start running upstream testing on a daily basis and reporting the reuslts of our test plan. To do that we need some recipes that point to the upstream of the repositories that need to be tracked.

---
  .../u-boot/u-boot-ti-upstream_git.bb          | 19 +++++
  .../linux/linux-ti-upstream_git.bb            | 75 +++++++++++++++++++
  2 files changed, 94 insertions(+)

create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-upstream_git.bb create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb

meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-upstream_git.bb new file +19 -0
new file mode 100644
index 00000000..52c3c293
@@ -0,0 +1,19 @@
+require u-boot-ti.inc
+
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
+
+PR = "r0"
+
+PV = "upstream"
+
+# For the un-initiated:
+# The actual URL you'd use with a git clone for example would be:
+# https://source.denx.de/u-boot/u-boot.git/
+# However, in the context of OE, we have to explicitly split things up:
+# a) we want it to use git fetcher - hence git:// prefix in GIT_URI (if we
+#  used https here, we'd endup attempting wget instead of git)
+# b) and we want git fetcher to use https protocol, hence GIT_PROTOCOL as https
+UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git"
+UBOOT_GIT_PROTOCOL = "https"
+SRCREV = "${AUTOREV}"
+
meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb new file +0 -0
new file mode 100644
index 00000000..33778199

meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb line 8

Quoted 8 lines
meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb new file +8 -0
@@ -0,0 +1,75 @@
+SECTION = "kernel"
+SUMMARY = "Mainline Linux kernel for TI devices (with ti-upstream-tools)"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
+
+inherit kernel
+
+DEFCONFIG_BUILDER = "${WORKDIR}/ti-upstream-tools/config/defconfig_builder.sh"

Nak, this is not upstream. Use the upstream defconfigs only, "multi_v7_defconfig" for all pre-K3, and "defconfig" for K3/ARM64.

Same for the below DTBOs, if the DTBO is not in upstream then it should not be working here.

Both DTBO and extra TI defconfig support are going upstream now, so I don't expect this to be a problem for much longer. However we need to track that progress. Patching around our missing stuff in this integration layer defeats the purpose of upstream testing.

Andrew

Quoted 78 lines
meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb new file +67 -1
+require recipes-kernel/linux/setup-defconfig.inc
+require recipes-kernel/linux/kernel-rdepends.inc
+require recipes-kernel/linux/ti-kernel.inc
+
+DEPENDS += "gmp-native libmpc-native"
+
+KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \
+		      ${EXTRA_DTC_ARGS}"
+
+S = "${WORKDIR}/git"
+
+BRANCH = "master"
+TOOLS_BRANCH = "master"
+
+# 5.15 Mainline version
+SRCREV = "${AUTOREV}"
+PV = "upstream+git${SRCPV}"
+
+# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
+MACHINE_KERNEL_PR:append = "b"
+PR = "${MACHINE_KERNEL_PR}"
+
+KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git"
+KERNEL_GIT_PROTOCOL = "https"
+SRC_URI += " \
+    ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH};name=linux \
+    git://git.ti.com/ti-linux-kernel/ti-upstream-tools.git;branch=${TOOLS_BRANCH};protocol=${KERNEL_GIT_PROTOCOL};name=ti-upstream-tools;destsuffix=ti-upstream-tools \
+    file://defconfig \
+"
+
+SRCREV_ti-upstream-tools = "${AUTOREV}"
+SRCREV_FORMAT = "linux"
+
+KERNEL_DEVICETREE = ""
+
+kernel_do_compile:append() {
+	oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
+	oe_runmake -C ${WORKDIR}/ti-upstream-tools LINUX=${S} DTC=${B}/scripts/dtc/dtc O=${B} CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
+}
+
+do_install:append() {
+	for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \)`; do
+		dtb="$dtbf"
+		dtb_ext=${dtb##*.}
+		dtb_base_name=`basename $dtb .$dtb_ext`
+		dtb_path=`get_real_dtb_path_in_kernel "$dtb"`
+		install -m 0644 $dtbf ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext
+	done
+}
+
+do_deploy:append() {
+	for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \) -printf '%P\n'`; do
+		dtb="$dtbf"
+		dtb_ext=${dtb##*.}
+		dtb_base_name=`basename $dtb .$dtb_ext`
+		dtb_dir=`dirname $dtb`
+		install -d ${DEPLOYDIR}
+		install -m 0644 ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext ${DEPLOYDIR}/$dtb_base_name.$dtb_ext
+	done
+}
+
+do_shared_workdir:prepend() {
+	cd ${B}
+	echo >> Module.symvers
+}
+
+FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#15181): https://lists.yoctoproject.org/g/meta-ti/message/15181
Mute This Topic: https://lists.yoctoproject.org/mt/94413827/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 56 lines · Andrew Davis via lists.yoctoproject.org
Quoted 43 lines · Ryan Eatmon via lists.yoctoproject.org

We want to start running upstream testing on a daily basis and reporting the reuslts of our test plan. To do that we need some recipes that point to the upstream of the repositories that need to be tracked.

---
 .../u-boot/u-boot-ti-upstream_git.bb          | 19 +++++
 .../linux/linux-ti-upstream_git.bb            | 75 +++++++++++++++++++
 2 files changed, 94 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-upstream_git.bb
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-upstream_git.bb new file +19 -0
new file mode 100644
index 00000000..52c3c293
@@ -0,0 +1,19 @@
+require u-boot-ti.inc
+
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
+
+PR = "r0"
+
+PV = "upstream"
+
+# For the un-initiated:
+# The actual URL you'd use with a git clone for example would be:
+# https://source.denx.de/u-boot/u-boot.git/
+# However, in the context of OE, we have to explicitly split things up:
+# a) we want it to use git fetcher - hence git:// prefix in GIT_URI (if we
+#  used https here, we'd endup attempting wget instead of git)
+# b) and we want git fetcher to use https protocol, hence GIT_PROTOCOL as https
+UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git"
+UBOOT_GIT_PROTOCOL = "https"
+SRCREV = "${AUTOREV}"
+
meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb new file +0 -0
new file mode 100644
index 00000000..33778199

meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb line 8

Quoted 8 lines
meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb new file +8 -0
@@ -0,0 +1,75 @@
+SECTION = "kernel"
+SUMMARY = "Mainline Linux kernel for TI devices (with ti-upstream-tools)"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
+
+inherit kernel
+
+DEFCONFIG_BUILDER = "${WORKDIR}/ti-upstream-tools/config/defconfig_builder.sh"

Nak, this is not upstream. Use the upstream defconfigs only, "multi_v7_defconfig" for all pre-K3, and "defconfig" for K3/ARM64.

Quoted 7 lines

Same for the below DTBOs, if the DTBO is not in upstream then it should not be working here.

Both DTBO and extra TI defconfig support are going upstream now, so I don't expect this to be a problem for much longer. However we need to track that progress. Patching around our missing stuff in this integration layer defeats the purpose of upstream testing.

If this is the case, I would suggest repurposing the ti-mainline recipes, instead of creating new ones.

Signature · 1 line
Denys
Quoted 74 lines

Andrew

Quoted 72 lines
meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb new file +67 -0
+require recipes-kernel/linux/setup-defconfig.inc
+require recipes-kernel/linux/kernel-rdepends.inc
+require recipes-kernel/linux/ti-kernel.inc
+
+DEPENDS += "gmp-native libmpc-native"
+
+KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \
+		      ${EXTRA_DTC_ARGS}"
+
+S = "${WORKDIR}/git"
+
+BRANCH = "master"
+TOOLS_BRANCH = "master"
+
+# 5.15 Mainline version
+SRCREV = "${AUTOREV}"
+PV = "upstream+git${SRCPV}"
+
+# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
+MACHINE_KERNEL_PR:append = "b"
+PR = "${MACHINE_KERNEL_PR}"
+
+KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git"
+KERNEL_GIT_PROTOCOL = "https"
+SRC_URI += " \
+    ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH};name=linux \
+    git://git.ti.com/ti-linux-kernel/ti-upstream-tools.git;branch=${TOOLS_BRANCH};protocol=${KERNEL_GIT_PROTOCOL};name=ti-upstream-tools;destsuffix=ti-upstream-tools \
+    file://defconfig \
+"
+
+SRCREV_ti-upstream-tools = "${AUTOREV}"
+SRCREV_FORMAT = "linux"
+
+KERNEL_DEVICETREE = ""
+
+kernel_do_compile:append() {
+	oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
+	oe_runmake -C ${WORKDIR}/ti-upstream-tools LINUX=${S} DTC=${B}/scripts/dtc/dtc O=${B} CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
+}
+
+do_install:append() {
+	for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \)`; do
+		dtb="$dtbf"
+		dtb_ext=${dtb##*.}
+		dtb_base_name=`basename $dtb .$dtb_ext`
+		dtb_path=`get_real_dtb_path_in_kernel "$dtb"`
+		install -m 0644 $dtbf ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext
+	done
+}
+
+do_deploy:append() {
+	for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \) -printf '%P\n'`; do
+		dtb="$dtbf"
+		dtb_ext=${dtb##*.}
+		dtb_base_name=`basename $dtb .$dtb_ext`
+		dtb_dir=`dirname $dtb`
+		install -d ${DEPLOYDIR}
+		install -m 0644 ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext ${DEPLOYDIR}/$dtb_base_name.$dtb_ext
+	done
+}
+
+do_shared_workdir:prepend() {
+	cd ${B}
+	echo >> Module.symvers
+}
+
+FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb"
#3 lore raw
In reply to Ryan Eatmon
Quoted 2 lines · Ryan Eatmon via lists.yoctoproject.org

We want to start running upstream testing on a daily basis and reporting the reuslts of our test plan. To do that we need some recipes that

results*

Manorit

Quoted 129 lines

point to the upstream of the repositories that need to be tracked.

---
 .../u-boot/u-boot-ti-upstream_git.bb          | 19 +++++
 .../linux/linux-ti-upstream_git.bb            | 75 +++++++++++++++++++
 2 files changed, 94 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-upstream_git.bb
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-upstream_git.bb new file +19 -0
new file mode 100644
index 00000000..52c3c293
@@ -0,0 +1,19 @@
+require u-boot-ti.inc
+
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
+
+PR = "r0"
+
+PV = "upstream"
+
+# For the un-initiated:
+# The actual URL you'd use with a git clone for example would be:
+# https://source.denx.de/u-boot/u-boot.git/
+# However, in the context of OE, we have to explicitly split things up:
+# a) we want it to use git fetcher - hence git:// prefix in GIT_URI (if we
+#  used https here, we'd endup attempting wget instead of git)
+# b) and we want git fetcher to use https protocol, hence GIT_PROTOCOL as https
+UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git"
+UBOOT_GIT_PROTOCOL = "https"
+SRCREV = "${AUTOREV}"
+
meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb new file +75 -0
new file mode 100644
index 00000000..33778199
@@ -0,0 +1,75 @@
+SECTION = "kernel"
+SUMMARY = "Mainline Linux kernel for TI devices (with ti-upstream-tools)"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
+
+inherit kernel
+
+DEFCONFIG_BUILDER = "${WORKDIR}/ti-upstream-tools/config/defconfig_builder.sh"
+require recipes-kernel/linux/setup-defconfig.inc
+require recipes-kernel/linux/kernel-rdepends.inc
+require recipes-kernel/linux/ti-kernel.inc
+
+DEPENDS += "gmp-native libmpc-native"
+
+KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \
+		      ${EXTRA_DTC_ARGS}"
+
+S = "${WORKDIR}/git"
+
+BRANCH = "master"
+TOOLS_BRANCH = "master"
+
+# 5.15 Mainline version
+SRCREV = "${AUTOREV}"
+PV = "upstream+git${SRCPV}"
+
+# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
+MACHINE_KERNEL_PR:append = "b"
+PR = "${MACHINE_KERNEL_PR}"
+
+KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git"
+KERNEL_GIT_PROTOCOL = "https"
+SRC_URI += " \
+    ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH};name=linux \
+    git://git.ti.com/ti-linux-kernel/ti-upstream-tools.git;branch=${TOOLS_BRANCH};protocol=${KERNEL_GIT_PROTOCOL};name=ti-upstream-tools;destsuffix=ti-upstream-tools \
+    file://defconfig \
+"
+
+SRCREV_ti-upstream-tools = "${AUTOREV}"
+SRCREV_FORMAT = "linux"
+
+KERNEL_DEVICETREE = ""
+
+kernel_do_compile:append() {
+	oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
+	oe_runmake -C ${WORKDIR}/ti-upstream-tools LINUX=${S} DTC=${B}/scripts/dtc/dtc O=${B} CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
+}
+
+do_install:append() {
+	for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \)`; do
+		dtb="$dtbf"
+		dtb_ext=${dtb##*.}
+		dtb_base_name=`basename $dtb .$dtb_ext`
+		dtb_path=`get_real_dtb_path_in_kernel "$dtb"`
+		install -m 0644 $dtbf ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext
+	done
+}
+
+do_deploy:append() {
+	for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \) -printf '%P\n'`; do
+		dtb="$dtbf"
+		dtb_ext=${dtb##*.}
+		dtb_base_name=`basename $dtb .$dtb_ext`
+		dtb_dir=`dirname $dtb`
+		install -d ${DEPLOYDIR}
+		install -m 0644 ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext ${DEPLOYDIR}/$dtb_base_name.$dtb_ext
+	done
+}
+
+do_shared_workdir:prepend() {
+	cd ${B}
+	echo >> Module.symvers
+}
+
+FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb"
Signature · 11 lines
2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15181): https://lists.yoctoproject.org/g/meta-ti/message/15181
Mute This Topic: https://lists.yoctoproject.org/mt/94413827/6945827
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#4 lore raw
Quoted 5 lines · Manorit Chawdhry
Quoted 2 lines · Ryan Eatmon via lists.yoctoproject.org

We want to start running upstream testing on a daily basis and reporting the reuslts of our test plan. To do that we need some recipes that

results*

Yeah I caught that. This patch was mainly floated to start a discussion. A new patch will be coming out soon, and I'll make sure I have no typos in the comments.

Quoted 132 lines

Manorit

Quoted 129 lines

point to the upstream of the repositories that need to be tracked.

---
  .../u-boot/u-boot-ti-upstream_git.bb          | 19 +++++
  .../linux/linux-ti-upstream_git.bb            | 75 +++++++++++++++++++
  2 files changed, 94 insertions(+)

create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-upstream_git.bb create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb

meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-upstream_git.bb new file +19 -0
new file mode 100644
index 00000000..52c3c293
@@ -0,0 +1,19 @@
+require u-boot-ti.inc
+
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
+
+PR = "r0"
+
+PV = "upstream"
+
+# For the un-initiated:
+# The actual URL you'd use with a git clone for example would be:
+# https://source.denx.de/u-boot/u-boot.git/
+# However, in the context of OE, we have to explicitly split things up:
+# a) we want it to use git fetcher - hence git:// prefix in GIT_URI (if we
+#  used https here, we'd endup attempting wget instead of git)
+# b) and we want git fetcher to use https protocol, hence GIT_PROTOCOL as https
+UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git"
+UBOOT_GIT_PROTOCOL = "https"
+SRCREV = "${AUTOREV}"
+
meta-ti-bsp/recipes-kernel/linux/linux-ti-upstream_git.bb new file +75 -0
new file mode 100644
index 00000000..33778199
@@ -0,0 +1,75 @@
+SECTION = "kernel"
+SUMMARY = "Mainline Linux kernel for TI devices (with ti-upstream-tools)"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
+
+inherit kernel
+
+DEFCONFIG_BUILDER = "${WORKDIR}/ti-upstream-tools/config/defconfig_builder.sh"
+require recipes-kernel/linux/setup-defconfig.inc
+require recipes-kernel/linux/kernel-rdepends.inc
+require recipes-kernel/linux/ti-kernel.inc
+
+DEPENDS += "gmp-native libmpc-native"
+
+KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \
+		      ${EXTRA_DTC_ARGS}"
+
+S = "${WORKDIR}/git"
+
+BRANCH = "master"
+TOOLS_BRANCH = "master"
+
+# 5.15 Mainline version
+SRCREV = "${AUTOREV}"
+PV = "upstream+git${SRCPV}"
+
+# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
+MACHINE_KERNEL_PR:append = "b"
+PR = "${MACHINE_KERNEL_PR}"
+
+KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git"
+KERNEL_GIT_PROTOCOL = "https"
+SRC_URI += " \
+    ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH};name=linux \
+    git://git.ti.com/ti-linux-kernel/ti-upstream-tools.git;branch=${TOOLS_BRANCH};protocol=${KERNEL_GIT_PROTOCOL};name=ti-upstream-tools;destsuffix=ti-upstream-tools \
+    file://defconfig \
+"
+
+SRCREV_ti-upstream-tools = "${AUTOREV}"
+SRCREV_FORMAT = "linux"
+
+KERNEL_DEVICETREE = ""
+
+kernel_do_compile:append() {
+	oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
+	oe_runmake -C ${WORKDIR}/ti-upstream-tools LINUX=${S} DTC=${B}/scripts/dtc/dtc O=${B} CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
+}
+
+do_install:append() {
+	for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \)`; do
+		dtb="$dtbf"
+		dtb_ext=${dtb##*.}
+		dtb_base_name=`basename $dtb .$dtb_ext`
+		dtb_path=`get_real_dtb_path_in_kernel "$dtb"`
+		install -m 0644 $dtbf ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext
+	done
+}
+
+do_deploy:append() {
+	for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \) -printf '%P\n'`; do
+		dtb="$dtbf"
+		dtb_ext=${dtb##*.}
+		dtb_base_name=`basename $dtb .$dtb_ext`
+		dtb_dir=`dirname $dtb`
+		install -d ${DEPLOYDIR}
+		install -m 0644 ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext ${DEPLOYDIR}/$dtb_base_name.$dtb_ext
+	done
+}
+
+do_shared_workdir:prepend() {
+	cd ${B}
+	echo >> Module.symvers
+}
+
+FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb"
Signature · 11 lines
2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15181): https://lists.yoctoproject.org/g/meta-ti/message/15181
Mute This Topic: https://lists.yoctoproject.org/mt/94413827/6945827
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS