summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-11-27 21:15:36 +0000
committerChris Larson <clarson@kergoth.com>2004-11-27 21:15:36 +0000
commit01a6be99e42d0802dec1c55efc753905c12d1858 (patch)
tree52b0a130f97e2b0425781820205eb6ae5e284a28
parentc56e69b21cf2fca3237cdda37bd1ffed63d01aee (diff)
Apply Murray's kernel arch patch, with slight alternations.
BKrev: 41a8ee78yO5s_JTaDj8FrDw96brl8w
-rw-r--r--classes/kernel-arch.oeclass0
-rw-r--r--classes/kernel.oeclass3
-rw-r--r--classes/module-base.oeclass6
3 files changed, 4 insertions, 5 deletions
diff --git a/classes/kernel-arch.oeclass b/classes/kernel-arch.oeclass
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/classes/kernel-arch.oeclass
diff --git a/classes/kernel.oeclass b/classes/kernel.oeclass
index 3c55e3ce1e..0190e5fce6 100644
--- a/classes/kernel.oeclass
+++ b/classes/kernel.oeclass
@@ -3,7 +3,8 @@ inherit module_strip
PROVIDES += "virtual/kernel"
DEPENDS += "virtual/${TARGET_PREFIX}depmod virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules"
-export ARCH = "${TARGET_ARCH}"
+inherit kernel-arch
+
export OS = "${TARGET_OS}"
export CROSS_COMPILE = "${TARGET_PREFIX}"
KERNEL_IMAGETYPE = "zImage"
diff --git a/classes/module-base.oeclass b/classes/module-base.oeclass
index daa8978616..77e8ae4f78 100644
--- a/classes/module-base.oeclass
+++ b/classes/module-base.oeclass
@@ -1,9 +1,7 @@
inherit module_strip
-export ARCH = "${TARGET_ARCH}"
-export ARCH_i686 = "i386"
-export ARCH_mipsel = "mips"
-export ARCH_armeb = "arm"
+inherit kernel-arch
+
export OS = "${TARGET_OS}"
export CROSS_COMPILE = "${TARGET_PREFIX}"