From 0d42b110372ae83d5cc45f8a566cbb3ae80029d0 Mon Sep 17 00:00:00 2001 From: Yasushi SHOJI Date: Fri, 14 Jul 2023 00:05:43 +0900 Subject: [PATCH] zero: Add templates for local.conf and bblayers.conf Add template files for local.conf and bblayers.conf. With these files, we can now do: $ git clone https://github.com/spacecubics/scsat1-rpi $ cd scsat1-rpi/zero $ git clone -b kirkstone git://git.yoctoproject.org/meta-raspberrypi $ git clone -b kirkstone git://git.yoctoproject.org/poky $ TEMPLATECONF=$(readlink -f ./meta-scsat-rpi/conf) source ./poky/oe-init-build-env $ bitbake core-image-minimal Loading cache: 100% | | ETA: --:--:-- Loaded 0 entries from dependency cache. Parsing recipes: 100% |###############################################| Time: 0:00:04 Parsing of 913 .bb files complete (0 cached, 913 parsed). 1675 targets, 96 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "2.0.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "debian" TARGET_SYS = "arm-oe-linux-gnueabi" MACHINE = "raspberrypi0-wifi" DISTRO = "nodistro" DISTRO_VERSION = "nodistro.0" TUNE_FEATURES = "arm thumb vfp arm1176jzfs callconvention-hard" TARGET_FPU = "hard" meta = "kirkstone:471318ae2f6b3c142822001f4a18e2fed8c78f1a" meta-raspberrypi = "kirkstone:43683cb14b6afc144619335b3a2353b70762ff3e" Initialising tasks: 100% |############################################| Time: 0:00:00 Sstate summary: Wanted 721 Local 0 Mirrors 0 Missed 721 Current 0 (0% match, 0% complete) NOTE: Executing Tasks NOTE: Tasks Summary: Attempted 2005 tasks of which 0 didn't need to be rerun and all succeeded. Note that currently this only works with G++ 12. Debian Sid already have G++ 13 and libdns FTBFS. https://github.com/rpm-software-management/libdnf/issues/1558 Signed-off-by: Yasushi SHOJI --- zero/meta-scsat-rpi/conf/bblayers.conf.sample | 11 +++++++++++ zero/meta-scsat-rpi/conf/local.conf.sample | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 zero/meta-scsat-rpi/conf/bblayers.conf.sample create mode 100644 zero/meta-scsat-rpi/conf/local.conf.sample diff --git a/zero/meta-scsat-rpi/conf/bblayers.conf.sample b/zero/meta-scsat-rpi/conf/bblayers.conf.sample new file mode 100644 index 0000000..39adcea --- /dev/null +++ b/zero/meta-scsat-rpi/conf/bblayers.conf.sample @@ -0,0 +1,11 @@ +# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf +# changes incompatibly +POKY_BBLAYERS_CONF_VERSION = "2" + +BBPATH = "${TOPDIR}" +BBFILES ?= "" + +BBLAYERS ?= " \ + ##OEROOT##/meta \ + ##OEROOT##/../meta-raspberrypi \ + " diff --git a/zero/meta-scsat-rpi/conf/local.conf.sample b/zero/meta-scsat-rpi/conf/local.conf.sample new file mode 100644 index 0000000..64e4049 --- /dev/null +++ b/zero/meta-scsat-rpi/conf/local.conf.sample @@ -0,0 +1,16 @@ +MACHINE = "raspberrypi0-wifi" +#DISTRO = "scsat1-rpi" +PACKAGE_CLASSES = "package_rpm" +USER_CLASSES = "buildstats" +PATCHRESOLVE = "noop" +BB_DISKMON_DIRS ??= "\ + STOPTASKS,${TMPDIR},1G,100K \ + STOPTASKS,${DL_DIR},1G,100K \ + STOPTASKS,${SSTATE_DIR},1G,100K \ + STOPTASKS,/tmp,100M,100K \ + HALT,${TMPDIR},100M,1K \ + HALT,${DL_DIR},100M,1K \ + HALT,${SSTATE_DIR},100M,1K \ + HALT,/tmp,10M,1K" +PACKAGECONFIG:append:pn-qemu-system-native = " sdl" +CONF_VERSION = "2"