From 2a7348129a42f21095fcd62e47a035f78d254130 Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 12 Dec 2013 17:36:38 +0100 Subject: initial commit of Enea Linux 3.1 Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau --- conf/conf-notes.txt | 7 ++ conf/distro/enea-tiny.conf | 121 +++++++++++++++++++++++++++++++++++ conf/distro/enea.conf | 67 +++++++++++++++++++ conf/layer.conf | 12 ++++ conf/machine/acp3448v2.conf | 28 ++++++++ conf/machine/bsc9131rdb.conf | 22 +++++++ conf/machine/bsc9132qds.conf | 20 ++++++ conf/machine/ebony.conf | 27 ++++++++ conf/machine/include/tune-ppc440.inc | 11 ++++ conf/machine/include/tune-ppc476.inc | 11 ++++ 10 files changed, 326 insertions(+) create mode 100644 conf/conf-notes.txt create mode 100644 conf/distro/enea-tiny.conf create mode 100644 conf/distro/enea.conf create mode 100644 conf/layer.conf create mode 100644 conf/machine/acp3448v2.conf create mode 100644 conf/machine/bsc9131rdb.conf create mode 100644 conf/machine/bsc9132qds.conf create mode 100644 conf/machine/ebony.conf create mode 100644 conf/machine/include/tune-ppc440.inc create mode 100644 conf/machine/include/tune-ppc476.inc (limited to 'conf') diff --git a/conf/conf-notes.txt b/conf/conf-notes.txt new file mode 100644 index 0000000..55281bd --- /dev/null +++ b/conf/conf-notes.txt @@ -0,0 +1,7 @@ +Common targets are: + enea-image-minimal + enea-image-demo + meta-toolchain + +You can also run generated qemu images with a command like 'runqemu qemuppc' + diff --git a/conf/distro/enea-tiny.conf b/conf/distro/enea-tiny.conf new file mode 100644 index 0000000..ab7ab40 --- /dev/null +++ b/conf/distro/enea-tiny.conf @@ -0,0 +1,121 @@ +DISTRO = "enea" +DISTRO_NAME = "ENEA Linux distribution (Built by Poky 6.0)" +DISTRO_VERSION = "0.1" +SDK_VENDOR = "-eneasdk" +SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}" + +MAINTAINER = "ENEA " + +TARGET_VENDOR = "-enea" + +LOCALCONF_VERSION = "1" + +DISTRO_FEATURES = "" +# libc-big-macros \ +# libc-catgets \ +# libc-charsets \ +# libc-db-aliases \ +# libc-fcvt \ +# libc-fstab \ +# libc-ftraverse \ +# libc-libm-big \ +# libc-locales \ +# libc-locale-code \ +# libc-rcmd \ +# libc-sunrpc \ +# libc-utmp \ +# libc-utmpx \ +# libc-wordexp \ +# libc-posix-clang-wchar \ +# libc-posix-wchar-io" +DISTRO_FEATURES_LIBC = "ipv4 \ + ipv6 \ + libc-backtrace \ + libc-bsd \ + libc-cxx-tests \ + libc-crypt \ + libc-crypt-ufc \ + libc-envz \ + libc-fmtmsg \ + libc-getlogin \ + libc-idn \ + libc-inet-anl \ + libc-libm \ + libc-memusage \ + libc-nis \ + libc-nsswitch \ + libc-rtld-debug \ + libc-spawn \ + libc-streams \ + libc-posix-regexp \ + libc-posix-regexp-glibc \ +" + +DISTRO_FEATURES = "argp ext2 largefile xattr nfs pci ${DISTRO_FEATURES_LIBC} " + +# +# dany: Needed for meta-toolchain +# +#DISTRO_FEATURES_append = " x11 alsa " + +# dany: Set to minimize image further +#VIRTUAL-RUNTIME_login_manager = "" +VIRTUAL-RUNTIME_dev_manager = "" +#VIRTUAL-RUNTIME_update-alternatives = "" + +SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${PACKAGE_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" + +#KERNEL_IMAGETYPE = "uImage" +IMAGE_FSTYPES = "ext2.gz.u-boot tar.gz" +IMAGE_CLASSES += "image_types_uboot" +# Generate source packages +# PACKAGE_CLASSES += " src-dist " + +# Distribute unpatched sources +#SRC_DIST_LOCAL ?= "symlink" +#INHERIT += "src_distribute_enea" + +INHERIT += "image_types_uboot" +# INHERIT := "sourcepkg" + +#PREFERRED_VERSION_u-boot-mkimage-native_powerpc = "2011.06" +#PREFERRED_VERSION_u-boot-mkimage-native = "2011.06" +#PREFERRED_PROVIDER_vitual/libc = "eglibc" +#PREFERRED_VERSION_netbase = "4.45" + +CONNECTIVITY_CHECK_URIS ?= "git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=HEAD \ + https://eula-downloads.yoctoproject.org/index.php \ + http://bugzilla.yoctoproject.org/report.cgi" + diff --git a/conf/distro/enea.conf b/conf/distro/enea.conf new file mode 100644 index 0000000..05eef59 --- /dev/null +++ b/conf/distro/enea.conf @@ -0,0 +1,67 @@ +require conf/distro/poky.conf +DISTRO = "enea" +DISTRO_NAME = "Enea Linux" +DISTRO_VERSION = "3.1" +SDK_VENDOR = "-eneasdk" +SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}" + +MAINTAINER = "ENEA " + +TARGET_VENDOR = "-enea" +TARGET_VENDOR_virtclass-multilib-lib32 = "-enea" +TARGET_VENDOR_virtclass-multilib-lib64 = "-enea" + +DISTRO_FEATURES_LIBC = "\ + ipv4 \ + ipv6 \ + libc-backtrace \ + libc-big-macros \ + libc-bsd \ + libc-cxx-tests \ + libc-catgets \ + libc-charsets \ + libc-crypt \ + libc-crypt-ufc \ + libc-db-aliases \ + libc-envz \ + libc-fcvt \ + libc-fmtmsg \ + libc-fstab \ + libc-ftraverse \ + libc-getlogin \ + libc-idn \ + libc-inet-anl \ + libc-libm \ + libc-libm-big \ + libc-locales \ + libc-locale-code \ + libc-memusage libc-nis \ + libc-nsswitch \ + libc-rcmd \ + libc-rtld-debug \ + libc-spawn \ + libc-streams \ + libc-sunrpc \ + libc-utmp \ + libc-utmpx \ + libc-wordexp \ + libc-posix-clang-wchar \ + libc-posix-regexp \ + libc-posix-regexp-glibc \ + libc-posix-wchar-io \ + " + +DISTRO_FEATURES = "ptest argp ext2 largefile xattr nfs pci ${DISTRO_FEATURES_LIBC} " + +# dany: Set to minimize image further +#VIRTUAL-RUNTIME_login_manager = "" +#VIRTUAL-RUNTIME_dev_manager = "" +#VIRTUAL-RUNTIME_update-alternatives = "" + +SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${PACKAGE_ARCH}" + +#For meta-ti and meta-fsl-ppc, update BBMASK to avoid some known build errors +BBMASK ?= "" +OLDBBMASK := "${BBMASK}" +BBMASK = "${@base_conditional('OLDBBMASK', "", ".*/meta-(ti/recipes-misc|fsl-ppc/recipes-test)/", "${OLDBBMASK}", d)}" +BB_DANGLINGAPPENDS_WARNONLY ?= "1" diff --git a/conf/layer.conf b/conf/layer.conf new file mode 100644 index 0000000..bfd4ef2 --- /dev/null +++ b/conf/layer.conf @@ -0,0 +1,12 @@ +# We have a packages directory, add to BBFILES +BBPATH .= ":${LAYERDIR}" + +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb*" +BBFILES += "${LAYERDIR}/images/*.bb*" + +BBFILE_COLLECTIONS += "enea" +BBFILE_PATTERN_enea := "^${LAYERDIR}/" +BBFILE_PRIORITY_enea = "6" + +BB_ENV_EXTRAWHITE := "KSRC USRC" +BB_DANGLINGAPPENDS_WARNONLY = "yes" diff --git a/conf/machine/acp3448v2.conf b/conf/machine/acp3448v2.conf new file mode 100644 index 0000000..7fa628f --- /dev/null +++ b/conf/machine/acp3448v2.conf @@ -0,0 +1,28 @@ +#@TYPE: Machine +#@DESCRIPTION: Machine configuration for running + +require include/tune-ppc476.inc + +MACHINE_FEATURES = "usbhost pci ext2 ext3" + +PREFERRED_PROVIDER_virtual/kernel ?= "linux" +PREFERRED_VERSION_virtual/kernel ?= "3.0.6" + +PREFERRED_PROVIDER_linux-libc-headers ?= "linux-kernel-headers" +PREFERRED_PROVIDER_linux-libc-headers-nativesdk ?= "linux-kernel-headers-nativesdk" +PREFERRED_VERSION_linux-kernel-headers ?= "3.0.6" +PREFERRED_VERSION_linux-kernel-headers-nativesdk ?= "3.0.6" + +KERNEL_EXTRA_OEMAKE = "V=1" +#KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/acp.dts" +#KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/acp_dbgconfig" +KERNEL_IMAGETYPE = "uImage" +UBOOT_ENTRYPOINT = "0x00400000" +UBOOT_LOADADDRESS = "0x00400000" +IMAGE_FSTYPES = "tar.gz ext2.gz ext2.gz.u-boot" +USE_VT = "0" +SERIAL_CONSOLE = "115200 ttyS0" + +# override version preference in tcmode-default.inc +#PREFERRED_VERSION_u-boot-mkimage-native_powerpc = "" + diff --git a/conf/machine/bsc9131rdb.conf b/conf/machine/bsc9131rdb.conf new file mode 100644 index 0000000..72a4532 --- /dev/null +++ b/conf/machine/bsc9131rdb.conf @@ -0,0 +1,22 @@ +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-bsc913x" +PREFERRED_VERSION_virtual/kernel ?= "2.6.33" +PREFERRED_PROVIDER_linux-libc-headers ?= "linux-bsc913x-headers" +PREFERRED_PROVIDER_linux-libc-headers-nativesdk ?= "linux-bsc913x-headers-nativesdk" + +KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/bsc9131rdb.dts" + +KERNEL_IMAGETYPE ?= "uImage" +# disable the images below for now +# ext2.bz2 ext2.lzma \ +# ext2.gz.u-boot ext2.bz2.u-boot ext2.lzma.u-boot" + +MACHINEOVERRIDES .= ":e500v2" +SERIAL_CONSOLE = "115200 ttyS0" +USE_VT = "0" diff --git a/conf/machine/bsc9132qds.conf b/conf/machine/bsc9132qds.conf new file mode 100644 index 0000000..1c4aab3 --- /dev/null +++ b/conf/machine/bsc9132qds.conf @@ -0,0 +1,20 @@ +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-bsc913x" +PREFERRED_VERSION_virtual/kernel ?= "2.6.33" +PREFERRED_PROVIDER_linux-libc-headers ?= "linux-bsc913x-headers" +PREFERRED_PROVIDER_linux-libc-headers-nativesdk ?= "linux-bsc913x-headers-nativesdk" + +KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/bsc9132qds.dts" + +KERNEL_IMAGETYPE ?= "uImage" +# 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/conf/machine/ebony.conf b/conf/machine/ebony.conf new file mode 100644 index 0000000..25734be --- /dev/null +++ b/conf/machine/ebony.conf @@ -0,0 +1,27 @@ +#@TYPE: Machine +#@DESCRIPTION: Machine configuration for running + +require include/tune-ppc440.inc + +PREFERRED_PROVIDER_virtual/kernel ?= "kernel-org" +PREFERRED_VERSION_kernel-org ?= "3.0.6" + +PREFERRED_PROVIDER_linux-libc-headers ?= "kernel-org-headers" +PREFERRED_PROVIDER_linux-libc-headers-nativesdk ?= "kernel-org-headers-nativesdk" + +PREFERRED_VERSION_kernel-org-headers ?= "3.0.6" +PREFERRED_VERSION_kernel-org-headers-nativesdk ?= "3.0.6" + +#PREFERRED_VERSION_linx = "2.6.3" +#PREFERRED_VERSION_linx-mod = "2.6.3" + +IMAGE_FSTYPES = "tar.gz ext2.gz ext2.gz.u-boot" + +UBOOT_MACHINES = "ebony_config" +KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/ebony.dts" +KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/44x/ebony_defconfig" +KERNEL_IMAGETYPE = "uImage" +MACHINE_FEATURES = "kernel26 ext3 serial" + +# override version preference in tcmode-default.inc +PREFERRED_VERSION_u-boot-mkimage-native_powerpc = "" diff --git a/conf/machine/include/tune-ppc440.inc b/conf/machine/include/tune-ppc440.inc new file mode 100644 index 0000000..6262fb7 --- /dev/null +++ b/conf/machine/include/tune-ppc440.inc @@ -0,0 +1,11 @@ +DEFAULTTUNE ?= "ppc440" + +require conf/machine/include/powerpc/arch-powerpc.inc + +TUNEVALID[ppc440] = "Enable ppc440 specific processor optimizations" +TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-mcpu=440", "", d)}" +TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "ppc440", "", d)}" + +AVAILTUNES = "ppc440" +TUNE_FEATURES_tune-ppc440 = "m32 fpu-soft ppc440" +PACKAGE_EXTRA_ARCHS_tune-ppc440 = "powerpc-nf ppc440 ppc405" diff --git a/conf/machine/include/tune-ppc476.inc b/conf/machine/include/tune-ppc476.inc new file mode 100644 index 0000000..a34690f --- /dev/null +++ b/conf/machine/include/tune-ppc476.inc @@ -0,0 +1,11 @@ +DEFAULTTUNE ?= "ppc476" + +require conf/machine/include/powerpc/arch-powerpc.inc + +AVAILTUNES += "ppc476" +TUNE_FEATURES_tune-ppc476 = "m32 fpu-hard ppc476" +TUNEVALID[ppc476] = "Enable ppc476 specific processor optimizations" +TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc476", "-mcpu=476", "", d)}" +TUNE_PKGARCH_tune-ppc476 = "ppc476" + +PACKAGE_EXTRA_ARCHS_tune-ppc476 = "powerpc-nf ppc476 ppc440 ppc405" -- cgit v1.2.3-54-g00ecf