From 1c708b4b405020bc350c682bac2223c5c4c50c8d Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Tue, 4 May 2004 10:48:08 +0000 Subject: opensimpad_2.4.25-vrs2-pxa1-jpm1.oe: calculate KV and friends dynamically from PV require gcc 3.3.3 and arm host BKrev: 409774e8Uw1iq56v_wVtQFWlZJagDg --- linux/opensimpad_2.4.25-vrs2-pxa1-jpm1.oe | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'linux') diff --git a/linux/opensimpad_2.4.25-vrs2-pxa1-jpm1.oe b/linux/opensimpad_2.4.25-vrs2-pxa1-jpm1.oe index de0454a7c3..735c3ca724 100644 --- a/linux/opensimpad_2.4.25-vrs2-pxa1-jpm1.oe +++ b/linux/opensimpad_2.4.25-vrs2-pxa1-jpm1.oe @@ -1,11 +1,10 @@ DESCRIPTION = "Linux kernel for the SIEMENS SIMpad family of devices." MAINTAINER = "Michael 'Mickey' Lauer " LICENSE = "GPL" -KV = "2.4.25" -VRSV = "vrs2" -PXAV = "pxa1" -JPMV = "jpm1" -PV = "${KV}-${VRSV}-${PXAV}-${JPMV}" +KV = "${@oe.data.getVar('PV',d,True).split('-')[0]}" +VRSV = "${@oe.data.getVar('PV',d,True).split('-')[1]}" +PXAV = "${@oe.data.getVar('PV',d,True).split('-')[2]}" +JPMV = "${@oe.data.getVar('PV',d,True).split('-')[3]}" SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-${KV}.tar.bz2 \ file://${FILESDIR}/${KV}-${VRSV}.patch;patch=1 \ @@ -25,13 +24,16 @@ S = "${WORKDIR}/linux-${KV}" inherit kernel +KERNEL_CCSUFFIX = "-3.3.3" +COMPATIBLE_HOST = "arm.*-linux" + #FIXME: Use configuration system export MEM = "32" export RD = "32" export CMDLINE = "mtdparts=sa1100:512k(boot),1m(kernel),-(root) console=ttySA root=1f02 noinitrd jffs2_orphaned_inodes=delete rootfstype=jffs2 " EXTRA_OEMAKE = "" -do_configure_prepend() { +do_configure() { install -m 0644 ${FILESDIR}/defconfig-${MACHINE} ${S}/.config || die "No default configuration for ${MACHINE} available." mem=${MEM} -- cgit v1.2.3