diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-04 11:24:25 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-04 11:24:25 +0000 |
commit | f27cbd1a4e76ae4ce9728a380ee678df9953ed21 (patch) | |
tree | 4dd67c8318fced8f861ecfb7b382e3af1cf576aa /meta | |
parent | 1b7873fae984f29a3953e3601f543a29194fdaad (diff) | |
download | poky-f27cbd1a4e76ae4ce9728a380ee678df9953ed21.tar.gz |
Add depicture machine with patches from SimTec
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/machine/depicture.conf | 32 | ||||
-rw-r--r-- | meta/packages/linux/linux-simtec-2.6.26-simtec1/depicture-defconfig-append | 18 | ||||
-rw-r--r-- | meta/packages/linux/linux-simtec.inc | 22 | ||||
-rw-r--r-- | meta/packages/linux/linux-simtec_2.6.26-simtec1.bb | 15 |
4 files changed, 87 insertions, 0 deletions
diff --git a/meta/conf/machine/depicture.conf b/meta/conf/machine/depicture.conf new file mode 100644 index 0000000000..333af4f2f2 --- /dev/null +++ b/meta/conf/machine/depicture.conf | |||
@@ -0,0 +1,32 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: Simtec BBD20EUROU + IM2440D20 (Combination known as: Depicture) | ||
3 | #@DESCRIPTION: Machine configuration for running an ARM 920t in the BBD20EUROU board. | ||
4 | |||
5 | TARGET_ARCH = "arm" | ||
6 | PACKAGE_EXTRA_ARCHS = "armv4 armv4t" | ||
7 | |||
8 | require conf/machine/include/qemu.inc | ||
9 | require conf/machine/include/tune-arm920t.inc | ||
10 | |||
11 | KERNEL_IMAGETYPE = "zImage" | ||
12 | |||
13 | SERIAL_CONSOLE = "115200 ttySAC0" | ||
14 | |||
15 | PREFERRED_PROVIDER_virtual/kernel = "linux-simtec" | ||
16 | PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive-fbdev" | ||
17 | |||
18 | MACHINE_FEATURES = "kernel26 alsa usbhost" | ||
19 | XSERVER = "xserver-kdrive-fbdev" | ||
20 | |||
21 | SERIAL_CONSOLE = "115200 ttySAC0" | ||
22 | |||
23 | # used by some images | ||
24 | ROOT_FLASH_SIZE = "28" | ||
25 | |||
26 | # Ensure the JFFS2 has summary nodes... | ||
27 | IMAGE_FSTYPES += " jffs2" | ||
28 | EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=0x20000 --pagesize=0x800 \ | ||
29 | --no-cleanmarkers --pad -n -x lzo ; sumtool --eraseblock=0x20000 --no-cleanmarkers \ | ||
30 | --littleendian --pad \ | ||
31 | -i ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \ | ||
32 | -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2.summary" | ||
diff --git a/meta/packages/linux/linux-simtec-2.6.26-simtec1/depicture-defconfig-append b/meta/packages/linux/linux-simtec-2.6.26-simtec1/depicture-defconfig-append new file mode 100644 index 0000000000..fc1af85bef --- /dev/null +++ b/meta/packages/linux/linux-simtec-2.6.26-simtec1/depicture-defconfig-append | |||
@@ -0,0 +1,18 @@ | |||
1 | # The Depicture needs the S3C24xx's Framebuffer and LCD stuff | ||
2 | CONFIG_FB_S3C2410=y | ||
3 | CONFIG_LCD_CLASS_DEVICE=y | ||
4 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
5 | CONFIG_BACKLIGHT_S3C2410=y | ||
6 | CONFIG_LCD_PLATFORM=y | ||
7 | CONFIG_BACKLIGHT_PWM=y | ||
8 | CONFIG_SIMTEC_LCD=y | ||
9 | # And also the touchscreen interface | ||
10 | CONFIG_TOUCHSCREEN_S3C2410=y | ||
11 | CONFIG_INPUT_EVDEV=y | ||
12 | CONFIG_SENSORS_S3C_ADC=y | ||
13 | # And the MMC makes sense to compile in. | ||
14 | CONFIG_MMC=y | ||
15 | CONFIG_MMC_BLOCK=y | ||
16 | CONFIG_MMC_S3C=y | ||
17 | # IPv6 is needed for the X server | ||
18 | CONFIG_IPV6=y | ||
diff --git a/meta/packages/linux/linux-simtec.inc b/meta/packages/linux/linux-simtec.inc new file mode 100644 index 0000000000..b9503cef96 --- /dev/null +++ b/meta/packages/linux/linux-simtec.inc | |||
@@ -0,0 +1,22 @@ | |||
1 | require linux.inc | ||
2 | |||
3 | do_prepdefconfig() { | ||
4 | cp ${S}/arch/arm/configs/s3c24xx_simtec_defconfig ${WORKDIR}/defconfig | ||
5 | if test -e ${WORKDIR}/${MACHINE}-defconfig-append; then | ||
6 | cat ${WORKDIR}/${MACHINE}-defconfig-append >> ${WORKDIR}/defconfig | ||
7 | fi | ||
8 | } | ||
9 | |||
10 | addtask prepdefconfig before do_configure after do_patch | ||
11 | |||
12 | do_deploy() { | ||
13 | install -d ${DEPLOY_DIR_IMAGE} | ||
14 | install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin | ||
15 | cd ${DEPLOY_DIR_IMAGE} | ||
16 | ln -sf ${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin ${KERNEL_IMAGETYPE}-${MACHINE}.bin | ||
17 | tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_RELEASE}-${MACHINE}.tgz -C ${D} lib | ||
18 | } | ||
19 | |||
20 | do_deploy[dirs] = "${S}" | ||
21 | |||
22 | addtask deploy before do_populate_staging after do_install | ||
diff --git a/meta/packages/linux/linux-simtec_2.6.26-simtec1.bb b/meta/packages/linux/linux-simtec_2.6.26-simtec1.bb new file mode 100644 index 0000000000..9eb2c88d3d --- /dev/null +++ b/meta/packages/linux/linux-simtec_2.6.26-simtec1.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | require linux-simtec.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | |||
5 | PROVIDES += "virtual/kernel" | ||
6 | |||
7 | DEFAULT_PREFERENCE = "-1" | ||
8 | DEFAULT_PREFERENCE_depicture = "1" | ||
9 | |||
10 | SRC_URI = "${KERNELORG_MIRROR}pub/linux/kernel/v2.6/linux-2.6.26.tar.bz2 \ | ||
11 | http://www.simtec.co.uk/products/SWLINUX/files/patch-2.6.26-simtec1.bz2;patch=1 \ | ||
12 | file://${MACHINE}-defconfig-append \ | ||
13 | " | ||
14 | |||
15 | S = "${WORKDIR}/linux-2.6.26" | ||