All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Fetch machine type list for ARM architectures
@ 2009-09-16 21:56 Leon Woestenberg
  2009-09-17  7:33 ` Phil Blundell
  2009-09-17  7:36 ` Koen Kooi
  0 siblings, 2 replies; 4+ messages in thread
From: Leon Woestenberg @ 2009-09-16 21:56 UTC (permalink / raw)
  To: openembedded-devel

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



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-25  9:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-16 21:56 [RFC] Fetch machine type list for ARM architectures Leon Woestenberg
2009-09-17  7:33 ` Phil Blundell
2009-09-25  9:26   ` Leon Woestenberg
2009-09-17  7:36 ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.