]> code.ossystems Code Review - meta-freescale.git/commitdiff
Initial commit for FSL Machines, Images, and Distro settings
authorMatthew McClintock <msm@freescale.com>
Tue, 4 Oct 2011 17:46:59 +0000 (12:46 -0500)
committerMatthew McClintock <msm@freescale.com>
Tue, 4 Oct 2011 17:46:59 +0000 (12:46 -0500)
Signed-off-by: Matthew McClintock <msm@freescale.com>
17 files changed:
meta-fsl-ppc/conf/distro/fsl.conf [new file with mode: 0644]
meta-fsl-ppc/conf/layer.conf [new file with mode: 0644]
meta-fsl-ppc/conf/machine/e500mc.inc [new file with mode: 0644]
meta-fsl-ppc/conf/machine/e500v2.inc [new file with mode: 0644]
meta-fsl-ppc/conf/machine/e5500-64b.inc [new file with mode: 0644]
meta-fsl-ppc/conf/machine/e5500.inc [new file with mode: 0644]
meta-fsl-ppc/conf/machine/mpc8572ds.conf [new file with mode: 0644]
meta-fsl-ppc/conf/machine/p1020rdb.conf [new file with mode: 0644]
meta-fsl-ppc/conf/machine/p1022ds.conf [new file with mode: 0644]
meta-fsl-ppc/conf/machine/p2020ds.conf [new file with mode: 0644]
meta-fsl-ppc/conf/machine/p3041ds.conf [new file with mode: 0644]
meta-fsl-ppc/conf/machine/p4080ds.conf [new file with mode: 0644]
meta-fsl-ppc/conf/machine/p5020ds-64b.conf [new file with mode: 0644]
meta-fsl-ppc/conf/machine/p5020ds.conf [new file with mode: 0644]
meta-fsl-ppc/images/fsl-image-lsb-sdk.bb [new file with mode: 0644]
meta-fsl-ppc/images/fsl-image-lsb.bb [new file with mode: 0644]
meta-fsl-ppc/images/fsl-image-minimal.bb [new file with mode: 0644]

diff --git a/meta-fsl-ppc/conf/distro/fsl.conf b/meta-fsl-ppc/conf/distro/fsl.conf
new file mode 100644 (file)
index 0000000..8b35b05
--- /dev/null
@@ -0,0 +1,49 @@
+DISTRO = "fsl"
+DISTRO_NAME = "Yocto (Built by Poky 5.0)"
+DISTRO_VERSION = "1.0+snapshot-${DATE}"
+SDK_VENDOR = "-fslsdk"
+SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
+
+MAINTAINER = "FSL <fsl@yoctoproject.org>"
+
+TARGET_VENDOR = "-fsl"
+
+LOCALCONF_VERSION = "1"
+
+DISTRO_FEATURES_append = " largefile opengl"
+
+SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${TARGET_ARCH}"
+SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}"
+
+DISTRO_EXTRA_RDEPENDS += "task-core-boot"
+DISTRO_EXTRA_RRECOMMENDS += ""
+
+POKYQEMUDEPS = "${@base_contains("INCOMPATIBLE_LICENSE", "GPLv3", "", "qemu-config",d)}"
+DISTRO_EXTRA_RDEPENDS_append_qemuarm = " ${POKYQEMUDEPS}"
+DISTRO_EXTRA_RDEPENDS_append_qemumips = " ${POKYQEMUDEPS}"
+DISTRO_EXTRA_RDEPENDS_append_qemuppc = " ${POKYQEMUDEPS}"
+DISTRO_EXTRA_RDEPENDS_append_qemux86 = " ${POKYQEMUDEPS}"
+DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}"
+
+TCLIBCAPPEND = ""
+
+QEMU_TARGETS ?= "arm i386 mips mipsel ppc x86_64"
+# Other QEMU_TARGETS "mips64 mips64el sh4"
+
+PREMIRRORS ?= "\
+bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
+cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
+git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
+hg://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
+osc://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
+p4://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
+svk://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
+svn://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n"
+
+MIRRORS =+ "\
+ftp://.*/.*      http://autobuilder.yoctoproject.org/sources/ \n \
+http://.*/.*     http://autobuilder.yoctoproject.org/sources/ \n \
+https://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n"
+
+IMAGE_CLASSES = "image_types_uboot"
+
diff --git a/meta-fsl-ppc/conf/layer.conf b/meta-fsl-ppc/conf/layer.conf
new file mode 100644 (file)
index 0000000..b469c67
--- /dev/null
@@ -0,0 +1,11 @@
+# We have a packages directory, add to BBFILES
+BBPATH := "${BBPATH}:${LAYERDIR}"
+
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb*"
+BBFILES += "${LAYERDIR}/images/*.bb"
+
+BBFILE_COLLECTIONS += "fsl"
+BBFILE_PATTERN_fsl := "^${LAYERDIR}/"
+BBFILE_PRIORITY_fsl = "5"
+
+BB_ENV_EXTRAWHITE := "KSRC USRC"
diff --git a/meta-fsl-ppc/conf/machine/e500mc.inc b/meta-fsl-ppc/conf/machine/e500mc.inc
new file mode 100644 (file)
index 0000000..fbd7830
--- /dev/null
@@ -0,0 +1,20 @@
+TARGET_FPU = "hard"
+
+require conf/machine/include/tune-ppce500mc.inc
+
+MACHINE_FEATURES = "kernel26 keyboard pci ext2 ext3 serial"
+MACHINE_FEATURES_RRECOMMENDS = ""
+
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-qoriq-sdk"
+PREFERRED_VERSION_virtual/kernel = "3.0.1"
+PREFERRED_PROVIDER_linux-libc-headers = "linux-qoriq-sdk-headers"
+
+KERNEL_IMAGETYPE = "uImage"
+SERIAL_CONSOLE = "115200 ttyS0"
+IMAGE_FSTYPES = "tar.gz ext2.gz"
+# disable the images below for now
+#              ext2.bz2 ext2.lzma \
+#              ext2.gz.u-boot ext2.bz2.u-boot ext2.lzma.u-boot"
+
+MACHINEOVERRIDES .= ":e500mc"
diff --git a/meta-fsl-ppc/conf/machine/e500v2.inc b/meta-fsl-ppc/conf/machine/e500v2.inc
new file mode 100644 (file)
index 0000000..165f4c5
--- /dev/null
@@ -0,0 +1,19 @@
+TARGET_FPU = "ppc-efd"
+
+require conf/machine/include/tune-ppce500v2.inc
+
+MACHINE_FEATURES = "kernel26 pci ext2 ext3 serial"
+MACHINE_EXTRA_RRECOMMENDS = ""
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-qoriq-sdk"
+PREFERRED_VERSION_virtual/kernel = "3.0.1"
+PREFERRED_PROVIDER_linux-libc-headers = "linux-qoriq-sdk-headers"
+
+KERNEL_IMAGETYPE = "uImage"
+SERIAL_CONSOLE = "115200 ttyS0"
+IMAGE_FSTYPES = "tar.gz ext2.gz"
+# disable the images below for now
+#              ext2.bz2 ext2.lzma \
+#              ext2.gz.u-boot ext2.bz2.u-boot ext2.lzma.u-boot"
+
+MACHINEOVERRIDES .= ":e500v2"
diff --git a/meta-fsl-ppc/conf/machine/e5500-64b.inc b/meta-fsl-ppc/conf/machine/e5500-64b.inc
new file mode 100644 (file)
index 0000000..7dca179
--- /dev/null
@@ -0,0 +1,20 @@
+TARGET_FPU = "hard"
+
+require conf/machine/include/tune-ppce5500-64b.inc
+
+MACHINE_FEATURES = "kernel26 keyboard pci ext2 ext3 serial"
+MACHINE_FEATURES_RRECOMMENDS = ""
+
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-qoriq-sdk"
+PREFERRED_VERSION_virtual/kernel = "3.0.1"
+PREFERRED_PROVIDER_linux-libc-headers = "linux-qoriq-sdk-headers"
+
+KERNEL_IMAGETYPE = "uImage"
+SERIAL_CONSOLE = "115200 ttyS0"
+IMAGE_FSTYPES = "tar.gz ext2.gz"
+# disable the images below for now
+#              ext2.bz2 ext2.lzma \
+#              ext2.gz.u-boot ext2.bz2.u-boot ext2.lzma.u-boot"
+
+MACHINEOVERRIDES .= ":e5500-64b"
diff --git a/meta-fsl-ppc/conf/machine/e5500.inc b/meta-fsl-ppc/conf/machine/e5500.inc
new file mode 100644 (file)
index 0000000..a833a9a
--- /dev/null
@@ -0,0 +1,20 @@
+TARGET_FPU = "hard"
+
+require conf/machine/include/tune-ppce5500-32b.inc
+
+MACHINE_FEATURES = "kernel26 keyboard pci ext2 ext3 serial"
+MACHINE_FEATURES_RRECOMMENDS = ""
+
+
+#PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
+PREFERRED_VERSION_virtual/kernel ?= "3.0.1"
+PREFERRED_PROVIDER_linux-libc-headers ?= "linux-qoriq-sdk-headers"
+
+KERNEL_IMAGETYPE = "uImage"
+SERIAL_CONSOLE = "115200 ttyS0"
+IMAGE_FSTYPES = "tar.gz ext2.gz"
+# disable the images below for now
+#              ext2.bz2 ext2.lzma \
+#              ext2.gz.u-boot ext2.bz2.u-boot ext2.lzma.u-boot"
+
+MACHINEOVERRIDES .= ":e5500"
diff --git a/meta-fsl-ppc/conf/machine/mpc8572ds.conf b/meta-fsl-ppc/conf/machine/mpc8572ds.conf
new file mode 100644 (file)
index 0000000..e05d945
--- /dev/null
@@ -0,0 +1,7 @@
+#@TYPE: Machine
+#@DESCRIPTION: Machine configuration for running 
+
+require e500v2.inc
+
+KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/mpc8572ds.dts"
+KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/mpc85xx_smp_defconfig"
diff --git a/meta-fsl-ppc/conf/machine/p1020rdb.conf b/meta-fsl-ppc/conf/machine/p1020rdb.conf
new file mode 100644 (file)
index 0000000..f44bdbd
--- /dev/null
@@ -0,0 +1,7 @@
+#@TYPE: Machine
+#@DESCRIPTION: Machine configuration for running 
+
+require e500v2.inc
+
+KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/p1020rdb.dts"
+KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/mpc85xx_smp_defconfig"
diff --git a/meta-fsl-ppc/conf/machine/p1022ds.conf b/meta-fsl-ppc/conf/machine/p1022ds.conf
new file mode 100644 (file)
index 0000000..b7d9019
--- /dev/null
@@ -0,0 +1,7 @@
+#@TYPE: Machine
+#@DESCRIPTION: Machine configuration for running 
+
+require e500v2.inc
+
+KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/p1022ds.dts"
+KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/mpc85xx_smp_defconfig"
diff --git a/meta-fsl-ppc/conf/machine/p2020ds.conf b/meta-fsl-ppc/conf/machine/p2020ds.conf
new file mode 100644 (file)
index 0000000..1686854
--- /dev/null
@@ -0,0 +1,10 @@
+#@TYPE: Machine
+#@DESCRIPTION: Machine configuration for running 
+
+require e500v2.inc
+
+KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/p2020ds.dts"
+KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/mpc85xx_smp_defconfig"
+
+UBOOT_MACHINES = "P2020DS_SDCARD_config P2020DS_config"
+BOOTFORMAT_CONFIG = "config_sram_p2020ds.dat"
diff --git a/meta-fsl-ppc/conf/machine/p3041ds.conf b/meta-fsl-ppc/conf/machine/p3041ds.conf
new file mode 100644 (file)
index 0000000..90b37fe
--- /dev/null
@@ -0,0 +1,7 @@
+#@TYPE: Machine
+#@DESCRIPTION: Machine configuration for running 
+
+require e500mc.inc
+
+KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/p3041ds.dts"
+KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/corenet32_smp_defconfig"
diff --git a/meta-fsl-ppc/conf/machine/p4080ds.conf b/meta-fsl-ppc/conf/machine/p4080ds.conf
new file mode 100644 (file)
index 0000000..1166f66
--- /dev/null
@@ -0,0 +1,9 @@
+#@TYPE: Machine
+#@DESCRIPTION: Machine configuration for running 
+
+require e500mc.inc
+
+KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/p4080ds.dts"
+KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/corenet32_smp_defconfig"
+
+UBOOT_MACHINES = "P4080DS_config"
diff --git a/meta-fsl-ppc/conf/machine/p5020ds-64b.conf b/meta-fsl-ppc/conf/machine/p5020ds-64b.conf
new file mode 100644 (file)
index 0000000..2810caf
--- /dev/null
@@ -0,0 +1,7 @@
+#@TYPE: Machine
+#@DESCRIPTION: Machine configuration for running 
+
+require e5500-64b.inc
+
+KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/p5020ds.dts"
+KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/corenet64_smp_defconfig"
diff --git a/meta-fsl-ppc/conf/machine/p5020ds.conf b/meta-fsl-ppc/conf/machine/p5020ds.conf
new file mode 100644 (file)
index 0000000..33ef5bb
--- /dev/null
@@ -0,0 +1,7 @@
+#@TYPE: Machine
+#@DESCRIPTION: Machine configuration for running 
+
+require e5500.inc
+
+KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/p5020ds.dts"
+KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/corenet32_smp_defconfig"
diff --git a/meta-fsl-ppc/images/fsl-image-lsb-sdk.bb b/meta-fsl-ppc/images/fsl-image-lsb-sdk.bb
new file mode 100644 (file)
index 0000000..5e0e7ae
--- /dev/null
@@ -0,0 +1,11 @@
+IMAGE_FEATURES += "apps-console-core tools-sdk dev-pkgs ssh-server-openssh"
+EXTRA_IMAGE_FEATURES = "tools-debug tools-profile tools-testapps debug-tweaks"
+
+
+IMAGE_INSTALL = "\
+    ${POKY_BASE_INSTALL} \
+    task-core-basic \
+    task-core-lsb \
+    "
+
+inherit core-image
diff --git a/meta-fsl-ppc/images/fsl-image-lsb.bb b/meta-fsl-ppc/images/fsl-image-lsb.bb
new file mode 100644 (file)
index 0000000..22eb7f4
--- /dev/null
@@ -0,0 +1,9 @@
+IMAGE_FEATURES += "apps-console-core ssh-server-openssh"
+
+IMAGE_INSTALL = "\
+    ${POKY_BASE_INSTALL} \
+    task-core-basic \
+    task-core-lsb \
+    "
+
+inherit core-image
diff --git a/meta-fsl-ppc/images/fsl-image-minimal.bb b/meta-fsl-ppc/images/fsl-image-minimal.bb
new file mode 100644 (file)
index 0000000..743e121
--- /dev/null
@@ -0,0 +1,15 @@
+#
+# Copyright (C) 2007 OpenedHand Ltd.
+#
+IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP}"
+
+IMAGE_LINGUAS = " "
+
+LICENSE = "MIT"
+
+inherit core-image
+
+IMAGE_ROOTFS_SIZE = "8192"
+
+# remove not needed ipkg informations
+ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "