[oe] [RFC] Fetch machine type list for ARM architectures

Leon Woestenberg leon.woestenberg at gmail.com
Wed Sep 16 21:56:15 UTC 2009


Hello,

two (known) ARM machines currently have kernel support but their
"mach-types" file in arch/arm/tools/ is not up-to-date.

I had this change in my local tree. It works, but is quite intrusive
as it is mixing a well-known version of the kernel sources (as per the
recipe) against an upstream, constantly changing file.
This is unwanted.

I rather think we should fetch the mach-types file only for those
machine that require it.

So please DO NOT APPLY this patch as-is.

Any other ideas on this?


--
Leon.


diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc
index 044d413..6db2022 100644
--- a/recipes/linux/linux.inc
+++ b/recipes/linux/linux.inc
@@ -53,6 +53,14 @@ python __anonymous () {
        bb.data.setVar("PACKAGES", "%s kernel-devicetree" % packages, d)
 }

+# update machine types list for ARM architecture
+do_arm_mach_types() {
+  if test ${TARGET_ARCH} == arm; then
+    curl -o mach-types
"http://www.arm.linux.org.uk/developer/machines/download.php" && \
+    cp mach-types arch/arm/tools/mach-types
+  fi
+}
+
 do_configure_prepend() {
         echo "" > ${S}/.config

@@ -170,6 +178,7 @@ do_devicetree_image() {
 }

 addtask devicetree_image after do_deploy before do_package
+addtask arm_mach_types after do_patch before do_configure

 pkg_postinst_kernel-devicetree () {
        cd /${KERNEL_IMAGEDEST}; update-alternatives --install
/${KERNEL_IMAGEDEST}/devicetree devicetree
devicetree-${KERNEL_VERSION} ${KERNEL_PRIORITY} ||


-- 
Leon




More information about the Openembedded-devel mailing list