From 643e1c4308f570ba8c1f2034a3519e1e2596488c Mon Sep 17 00:00:00 2001 From: Patrick Zysset Date: Fri, 8 Jun 2018 01:10:59 +0200 Subject: [PATCH] NRHW18 - refactoring of NRHW18 definitions and btw fixed wrong toolchain defines. Signed-off-by: Patrick Zysset --- conf/distro/nrhw-linux.conf | 91 +++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 conf/distro/nrhw-linux.conf diff --git a/conf/distro/nrhw-linux.conf b/conf/distro/nrhw-linux.conf new file mode 100644 index 0000000..ee25792 --- /dev/null +++ b/conf/distro/nrhw-linux.conf @@ -0,0 +1,91 @@ +DISTRO = "nrhw-linux" +DISTRO_NAME = "NRHW Linux Distribution" +DISTRO_VERSION = "1.0.0" +DISTRO_CODENAME = "experimental" +SDK_VENDOR = "-netmodule" +SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}" + +MAINTAINER = "Ramon Moesching \ + Alexander Bard \ + " + +TARGET_VENDOR = "-netmodule" + +LOCALCONF_VERSION = "1" + +# Override these in poky based distros +POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch" +POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot" +POKY_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet" + +DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} ${POKY_DEFAULT_DISTRO_FEATURES}" +DISTRO_FEATURES_remove = "x11" + +SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}" +SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}" + +DISTRO_EXTRA_RDEPENDS += " ${POKY_DEFAULT_EXTRA_RDEPENDS}" +DISTRO_EXTRA_RRECOMMENDS += " ${POKY_DEFAULT_EXTRA_RRECOMMENDS}" + +POKYQEMUDEPS = "${@bb.utils.contains("INCOMPATIBLE_LICENSE", "GPL-3.0", "", "packagegroup-core-device-devel",d)}" +DISTRO_EXTRA_RDEPENDS_append_qemuarm = " ${POKYQEMUDEPS}" +DISTRO_EXTRA_RDEPENDS_append_qemuarm64 = " ${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 aarch64 i386 mips mipsel mips64 ppc x86_64" +# Other QEMU_TARGETS "mips64el sh4" + +PREMIRRORS ??= "\ +bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" + +MIRRORS =+ "\ +ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" + +# The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully +# fetch from the network (and warn you if not). To disable the test set +# the variable to be empty. +# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=master +CONNECTIVITY_CHECK_URIS ?= "https://www.example.com/" + +SANITY_TESTED_DISTROS ?= " \ + poky-1.7 \n \ + poky-1.8 \n \ + poky-2.0 \n \ + Ubuntu-16.04 \n \ + Ubuntu-18.04 \n \ + Debian-8.* \n \ + Debian-9.* \n \ + " + +# Default hash policy for distro +BB_SIGNATURE_HANDLER ?= 'OEBasicHash' +# +# OELAYOUT_ABI allows us to notify users when the format of TMPDIR changes in +# an incompatible way. Such changes should usually be detailed in the commit +# that breaks the format and have been previously discussed on the mailing list +# with general agreement from the core team. +# +OELAYOUT_ABI = "11" + +DISTRO_FEATURES_append = " systemd" +VIRTUAL-RUNTIME_init_manager = "systemd" +DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" + +PREFERRED_VERSION_nodejs = "6.9.1" +PREFERRED_VERSION_nodejs-native = "6.9.1" + +PACKAGECONFIG_append_pn-nodejs = "openssl"