From fd604f849710775a1f5961159cce486bcbe843c6 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 20 Aug 2012 19:30:02 +0200 Subject: [PATCH] sysmocom-*-image: Add the IP and E1 image to this layer Add a BSC IP and BSC E1 image to the meta-sysmocom-bsp. --- .../sysmocom-bsc-e1-image-directdisk.bb | 20 +++++++++++++++++++ recipes-apps/images/sysmocom-bsc-e1-image.bb | 10 ++++++++++ .../sysmocom-bsc-ip-image-directdisk.bb | 20 +++++++++++++++++++ recipes-apps/images/sysmocom-bsc-ip-image.bb | 7 +++++++ 4 files changed, 57 insertions(+) create mode 100644 recipes-apps/images/sysmocom-bsc-e1-image-directdisk.bb create mode 100644 recipes-apps/images/sysmocom-bsc-e1-image.bb create mode 100644 recipes-apps/images/sysmocom-bsc-ip-image-directdisk.bb create mode 100644 recipes-apps/images/sysmocom-bsc-ip-image.bb diff --git a/recipes-apps/images/sysmocom-bsc-e1-image-directdisk.bb b/recipes-apps/images/sysmocom-bsc-e1-image-directdisk.bb new file mode 100644 index 0000000..3ab18d5 --- /dev/null +++ b/recipes-apps/images/sysmocom-bsc-e1-image-directdisk.bb @@ -0,0 +1,20 @@ +DESCRIPTION = "sysmocom BSC/E1 image" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ + file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +LICENSE = "MIT" + +inherit boot-directdisk + + +do_bootdirectdisk_prepend () { + import bb + fstypes = bb.data.getVar('IMAGE_FSTYPES', d, True) + if 'ext3' not in fstypes: + bb.msg.fatal(bb.msg.domain.Build, "ext3 not in IMAGE_FSTYPES") +} + +ROOTFS = "${DEPLOY_DIR_IMAGE}/sysmocom-bsc-e1-image-${MACHINE}.ext3" +do_bootdirectdisk[depends] += "sysmocom-bsc-e1-image:do_rootfs" + + diff --git a/recipes-apps/images/sysmocom-bsc-e1-image.bb b/recipes-apps/images/sysmocom-bsc-e1-image.bb new file mode 100644 index 0000000..f3491ea --- /dev/null +++ b/recipes-apps/images/sysmocom-bsc-e1-image.bb @@ -0,0 +1,10 @@ +IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${ROOTFS_PKGMANAGE} task-osmocom task-sysmocom \ + task-sysmocom-debug task-sysmocom-tools task-sysmocom-e1 task-gprscore \ + e2fsprogs-mke2fs e2fsprogs-tune2fs e2fsprogs-e2fsck e2fsprogs-fsck \ + kernel-module-nls-iso8859-1 kernel-module-nls-cp437" +IMAGE_LINGUAS = " " +LICENSE = "MIT" + +inherit core-image + +IMAGE_ROOTFS_SIZE = "524288" diff --git a/recipes-apps/images/sysmocom-bsc-ip-image-directdisk.bb b/recipes-apps/images/sysmocom-bsc-ip-image-directdisk.bb new file mode 100644 index 0000000..0ebfa93 --- /dev/null +++ b/recipes-apps/images/sysmocom-bsc-ip-image-directdisk.bb @@ -0,0 +1,20 @@ +DESCRIPTION = "sysmocom BSC/IP image" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ + file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +LICENSE = "MIT" + +inherit boot-directdisk + + +do_bootdirectdisk_prepend () { + import bb + fstypes = bb.data.getVar('IMAGE_FSTYPES', d, True) + if 'ext3' not in fstypes: + bb.msg.fatal(bb.msg.domain.Build, "ext3 not in IMAGE_FSTYPES") +} + +ROOTFS = "${DEPLOY_DIR_IMAGE}/sysmocom-bsc-ip-image-${MACHINE}.ext3" +do_bootdirectdisk[depends] += "sysmocom-bsc-ip-image:do_rootfs" + + diff --git a/recipes-apps/images/sysmocom-bsc-ip-image.bb b/recipes-apps/images/sysmocom-bsc-ip-image.bb new file mode 100644 index 0000000..c52f824 --- /dev/null +++ b/recipes-apps/images/sysmocom-bsc-ip-image.bb @@ -0,0 +1,7 @@ +IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${ROOTFS_PKGMANAGE} task-osmocom task-sysmocom task-sysmocom-debug task-sysmocom-tools task-gprscore sysmocom-udhcpd-config busybox-udhcpd" +IMAGE_LINGUAS = " " +LICENSE = "MIT" + +inherit core-image + +IMAGE_ROOTFS_SIZE = "262144"