meta-rpi: initial commit
Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
17
buildconf/bblayers.conf.sample
Normal file
17
buildconf/bblayers.conf.sample
Normal file
@@ -0,0 +1,17 @@
|
||||
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
|
||||
# changes incompatibly
|
||||
POKY_BBLAYERS_CONF_VERSION = "2"
|
||||
|
||||
BBPATH = "${TOPDIR}"
|
||||
BBFILES ?= ""
|
||||
|
||||
BBLAYERS ?= " \
|
||||
${TOPDIR}/../layers/poky/meta \
|
||||
${TOPDIR}/../layers/poky/meta-poky \
|
||||
${TOPDIR}/../layers/poky/meta-yocto-bsp \
|
||||
${TOPDIR}/../layers/meta-openembedded/meta-oe \
|
||||
${TOPDIR}/../layers/meta-openembedded/meta-networking \
|
||||
${TOPDIR}/../layers/meta-openembedded/meta-python \
|
||||
${TOPDIR}/../layers/meta-raspberrypi \
|
||||
${TOPDIR}/../layers/meta-rpi \
|
||||
"
|
8
buildconf/conf-notes.txt
Normal file
8
buildconf/conf-notes.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
Common targets are:
|
||||
console-image
|
||||
core-image-minimal
|
||||
core-image-sato
|
||||
meta-toolchain
|
||||
adt-installer
|
||||
meta-ide-support
|
||||
|
46
buildconf/local.conf.sample
Normal file
46
buildconf/local.conf.sample
Normal file
@@ -0,0 +1,46 @@
|
||||
MACHINE ?= "raspberrypi3-64"
|
||||
|
||||
#DL_DIR ?= "${TOPDIR}/../../downloads"
|
||||
#SSTATE_DIR ?= "${TOPDIR}/../../sstate-cache"
|
||||
#TMPDIR = "${TOPDIR}/tmp"
|
||||
|
||||
DISTRO ?= "poky"
|
||||
PACKAGE_CLASSES ?= "package_ipk"
|
||||
|
||||
#SDKMACHINE ?= "i686"
|
||||
|
||||
#EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
|
||||
|
||||
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
|
||||
|
||||
#IMAGE_BOOT_FILES_append = " uEnv.txt"
|
||||
|
||||
PATCHRESOLVE = "noop"
|
||||
|
||||
BB_DISKMON_DIRS = "\
|
||||
STOPTASKS,${TMPDIR},1G,100K \
|
||||
STOPTASKS,${DL_DIR},1G,100K \
|
||||
STOPTASKS,${SSTATE_DIR},1G,100K \
|
||||
STOPTASKS,/tmp,100M,100K \
|
||||
ABORT,${TMPDIR},100M,1K \
|
||||
ABORT,${DL_DIR},100M,1K \
|
||||
ABORT,${SSTATE_DIR},100M,1K \
|
||||
ABORT,/tmp,10M,1K"
|
||||
|
||||
#SSTATE_MIRRORS ?= "\
|
||||
#file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
|
||||
#file://.* file:///some/local/dir/sstate/PATH"
|
||||
|
||||
CONF_VERSION = "1"
|
||||
|
||||
INHERIT += "rm_work"
|
||||
|
||||
#INHERIT += "icecc"
|
||||
#ICECC_PATH = "/usr/bin/icecc"
|
||||
#ICECC_PARALLEL_MAKE = "-j 20"
|
||||
|
||||
INHERIT += "own-mirrors"
|
||||
SOURCE_MIRROR_URL = "https://files.blackfinn.de/mirror/sources"
|
||||
BB_GENERATE_MIRROR_TARBALLS = "1"
|
||||
|
||||
export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE DL_DIR"
|
33
buildconf/rpi-init-build-env
Normal file
33
buildconf/rpi-init-build-env
Normal file
@@ -0,0 +1,33 @@
|
||||
# Defaults
|
||||
OPT_M=raspberrypi3-64
|
||||
BUILD_DIR=build
|
||||
|
||||
#
|
||||
# MAIN
|
||||
#
|
||||
OPTIND=1
|
||||
shift $((OPTIND-1))
|
||||
for NOPTARG in $*; do
|
||||
BUILD_DIR="$NOPTARG"
|
||||
done
|
||||
|
||||
export TEMPLATECONF="../meta-rpi/buildconf"
|
||||
|
||||
export MACHINE=$OPT_M
|
||||
rm -f build/conf/bblayers.conf \
|
||||
build/conf/templateconf.cfg
|
||||
|
||||
mkdir -p $BUILD_DIR
|
||||
|
||||
if [ ! -h $BUILD_DIR/sync_ipk_up.sh ]; then
|
||||
ln -s ../layers/meta-rpi/tools/scripts/sync_ipk_up.sh $BUILD_DIR/sync_ipk_up.sh
|
||||
fi
|
||||
|
||||
if [ ! -h $BUILD_DIR/sync_src_up.sh ]; then
|
||||
ln -s ../layers/meta-rpi/tools/scripts/sync_src_up.sh $BUILD_DIR/sync_src_up.sh
|
||||
fi
|
||||
|
||||
source layers/poky/oe-init-build-env $BUILD_DIR
|
||||
|
||||
return 0
|
||||
|
Reference in New Issue
Block a user