Add base project files

This commit is contained in:
Theta-Dev 2021-11-03 17:36:32 +01:00
parent 043b08d29d
commit 658f5dc233
15 changed files with 150 additions and 1 deletions

14
.editorconfig Normal file
View file

@ -0,0 +1,14 @@
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 88
[*.go]
indent_style = tab
[*.{json,md,rst,ini,yml,yaml}]
indent_size = 2

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/build*
/vscode-bitbake-build

4
.gitmodules vendored
View file

@ -10,3 +10,7 @@
path = sources/meta-openembedded
url = git://git.openembedded.org/meta-openembedded
branch = hardknott
[submodule "sources/meta-raspberrypi"]
path = sources/meta-raspberrypi
url = git://git.yoctoproject.org/meta-raspberrypi
branch = hardknott

2
.templateconf Normal file
View file

@ -0,0 +1,2 @@
# Template settings
TEMPLATECONF=${TEMPLATECONF:-sample-files}

1
bitbake Symbolic link
View file

@ -0,0 +1 @@
sources/bitbake

1
oe-init-build-env Symbolic link
View file

@ -0,0 +1 @@
sources/oe-core/oe-init-build-env

View file

@ -0,0 +1,22 @@
# This template file was created by taking the oe-core/meta/conf/bblayers.conf
# file and removing the BBLAYERS section at the end.
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "7"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
##OEROOT##/sources/meta-tsgrain \
##OEROOT##/sources/meta-raspberrypi \
##OEROOT##/sources/meta-openembedded/meta-initramfs \
##OEROOT##/sources/meta-openembedded/meta-oe \
##OEROOT##/sources/meta-openembedded/meta-webserver \
##OEROOT##/sources/meta-openembedded/meta-networking \
##OEROOT##/sources/meta-openembedded/meta-python \
##OEROOT##/sources/meta-openembedded/meta-multimedia \
##OEROOT##/sources/meta-openembedded/meta-filesystems \
##OEROOT##/sources/oe-core/meta \
"

View file

@ -0,0 +1,27 @@
DISTRO = "tsgrain"
#MACHINE = "raspberrypi3"
# This sets the default machine to be qemuarm if no other machine is selected:
MACHINE ??= "qemuarm"
# BUILDFILE_DIR = "/buildfiles"
BUILDFILE_DIR ??= "${TOPDIR}"
DL_DIR = "${BUILDFILE_DIR}/downloads"
SSTATE_DIR = "${BUILDFILE_DIR}/sstate-cache"
TMPDIR = "${BUILDFILE_DIR}/tmp"
USER_CLASSES = "buildstats buildstats-summary image-mklibs image-prelink"
PACKAGE_CLASSES = "package_ipk"
PATCHRESOLVE = "noop"
# Don't generate the mirror tarball for SCM repos, the snapshot is enough
BB_GENERATE_MIRROR_TARBALLS = "0"
INHERIT += "rm_work"
# CONF_VERSION is increased each time build/conf/ changes incompatibly
CONF_VERSION = "1"

1
scripts Symbolic link
View file

@ -0,0 +1 @@
sources/oe-core/scripts

@ -1 +1 @@
Subproject commit 692fa35f4c23722f3179502cb965960cc230e709
Subproject commit c7b506d11df78cfc4610db6578745eaa6220b13a

@ -0,0 +1 @@
Subproject commit 9d372828ba657340a42e31875d2326e5f6753403

View file

@ -0,0 +1,24 @@
DISTRO = "tsgrain"
DISTRO_NAME = "TSGRain distro"
DISTRO_VERSION = "0.0.1"
SDK_VENDOR = "-tsgrainsdk"
SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
SDK_VERSION[vardepvalue] = "${SDK_VERSION}"
TARGET_VENDOR = "-tsgrain"
LOCALCONF_VERSION = "1"
SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
SDKPATHINSTALL = "/opt/${DISTRO}/${SDK_VERSION}"
TSGRAIN_DEFAULT_DISTRO_FEATURES = "systemd largefile wifi bluez5 bluetooth"
DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${TSGRAIN_DEFAULT_DISTRO_FEATURES}"
DISTRO_FEATURES_remove = "x11 sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = ""
VIRTUAL-RUNTIME_dev_manager = "systemd"
require conf/distro/include/yocto-uninative.inc
INHERIT += "uninative buildstats sstate license remove-libtool"

View file

@ -0,0 +1,11 @@
BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
BBFILE_COLLECTIONS += "meta-tsgrain"
BBFILE_PATTERN_meta-tsgrain := "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-tsgrain := "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-tsgrain = "9"
LAYERDEPENDS_meta-tsgrain = "core openembedded-layer"
LAYERVERSION_meta-tsgrain = "1"
LAYERSERIES_COMPAT_meta-tsgrain = "hardknott"
BBLAYERS_LAYERINDEX_NAME_meta-tsgrain = "meta-tsgrain"

View file

@ -0,0 +1,22 @@
SUMMARY = "TSGRain image"
IMAGE_INSTALL = "\
${CORE_IMAGE_BASE_INSTALL} \
packagegroup-essential \
dhcpcd dnsmasq hostapd \
\
curl \
python3 \
"
IMAGE_FEATURES = "\
debug-tweaks \
package-management \
ssh-server-openssh \
"
IMAGE_LINGUAS = ""
IMAGE_FSTYPES = "tar.bz2 ext3 ${@bb.utils.contains_any("MACHINE", "raspberrypi3", "rpi-sdimg", "", d)}"
LICENSE = "MIT"
inherit core-image

View file

@ -0,0 +1,17 @@
# This recipe is intended as a 'simpler' replacement for packagegroup-base.
# Please communicate your use cases and suggestions to the mailinglist(s)
SUMMARY = "Basic task to get a device online"
inherit packagegroup
RRECOMMENDS_${PN} = "\
avahi-daemon avahi-utils \
hostapd dhcpcd iptables \
\
tzdata \
\
cpufrequtils \
htop \
bash-completion \
"