Compare commits
1 Commits
622fa07110
...
dd71ad2f34
Author | SHA1 | Date | |
---|---|---|---|
dd71ad2f34 |
16
buildconf/bananapi-m3/bblayers.conf.sample
Normal file
16
buildconf/bananapi-m3/bblayers.conf.sample
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# 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/meta-openembedded/meta-oe \
|
||||||
|
${TOPDIR}/../layers/meta-openembedded/meta-networking \
|
||||||
|
${TOPDIR}/../layers/meta-openembedded/meta-python \
|
||||||
|
${TOPDIR}/../layers/meta-blackfinn \
|
||||||
|
${TOPDIR}/../layers/meta-sunxi \
|
||||||
|
"
|
8
buildconf/bananapi-m3/conf-notes.txt
Normal file
8
buildconf/bananapi-m3/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
|
||||||
|
|
41
buildconf/bananapi-m3/local.conf.sample
Normal file
41
buildconf/bananapi-m3/local.conf.sample
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
MACHINE ?= "bananapi-m3"
|
||||||
|
|
||||||
|
#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"
|
||||||
|
|
||||||
|
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 += "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"
|
||||||
|
|
@ -1,9 +0,0 @@
|
|||||||
OPT_M=beaglebone-yocto
|
|
||||||
BUILD_DIR=build
|
|
||||||
|
|
||||||
export TEMPLATECONF="../meta-bbb/buildconf"
|
|
||||||
|
|
||||||
source layers/meta-blackfinn/buildconf/default-init-build-env $BUILD_DIR
|
|
||||||
|
|
||||||
return 0
|
|
||||||
|
|
17
buildconf/beaglebone-yocto/bblayers.conf.sample
Normal file
17
buildconf/beaglebone-yocto/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-blackfinn \
|
||||||
|
${TOPDIR}/../layers/meta-bbb \
|
||||||
|
"
|
8
buildconf/beaglebone-yocto/conf-notes.txt
Normal file
8
buildconf/beaglebone-yocto/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
|
||||||
|
|
42
buildconf/beaglebone-yocto/local.conf.sample
Normal file
42
buildconf/beaglebone-yocto/local.conf.sample
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
MACHINE ?= "beaglebone-yocto"
|
||||||
|
|
||||||
|
#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 += "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"
|
51
buildconf/blackfinn-init-build-env
Normal file
51
buildconf/blackfinn-init-build-env
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
function print_help {
|
||||||
|
echo ""
|
||||||
|
echo "Prepare environment for blackfinn-based yocto builds."
|
||||||
|
echo ""
|
||||||
|
echo "Usage:"
|
||||||
|
echo "MACHINE=<my_machine> source blackfinn-init-build-env <build_dir>"
|
||||||
|
echo ""
|
||||||
|
echo "MACHINE is optional. if not specified it defaults to 'qemuarm-64'."
|
||||||
|
echo "Supported machines:"
|
||||||
|
echo -e "\tqemuarm\n\tqemuarm64\n\tqemumips\n\tqemumips64\n\tqemuppc"
|
||||||
|
echo -e "\tqemux86\n\tqemux86-64\n"
|
||||||
|
echo -e "\tbeaglebone-yocto\n\tedgerouter\n\tgenericx86\n\tgenericx86-64\n\tmpc8315e-rdb\n"
|
||||||
|
echo -e "\traspberrypi3-64\n\tbananapi-m3"
|
||||||
|
echo ""
|
||||||
|
echo "<build_dir> is optional. If not specified it defaults to 'build'."
|
||||||
|
echo ""
|
||||||
|
}
|
||||||
|
|
||||||
|
function print_config {
|
||||||
|
echo "Configuration:"
|
||||||
|
echo " MACHINE: $1"
|
||||||
|
echo " BUILD_DIR: $2"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DEFAULT_MACHINE=qemux86-64
|
||||||
|
BUILD_DIR=build
|
||||||
|
|
||||||
|
print_help
|
||||||
|
|
||||||
|
if [ -z "$MACHINE" ]; then
|
||||||
|
MACHINE=$DEFAULT_MACHINE
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $# -eq "1" ]; then
|
||||||
|
BUILD_DIR=$1
|
||||||
|
fi
|
||||||
|
|
||||||
|
print_config $MACHINE $BUILD_DIR
|
||||||
|
|
||||||
|
rm -f build/conf/bblayers.conf \
|
||||||
|
build/conf/templateconf.cfg
|
||||||
|
|
||||||
|
mkdir -p $BUILD_DIR
|
||||||
|
|
||||||
|
export TEMPLATECONF="../meta-blackfinn/buildconf/$MACHINE"
|
||||||
|
|
||||||
|
source layers/poky/oe-init-build-env $BUILD_DIR
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
OPTIND=1
|
|
||||||
shift $((OPTIND-1))
|
|
||||||
for NOPTARG in $*; do
|
|
||||||
BUILD_DIR="$NOPTARG"
|
|
||||||
done
|
|
||||||
|
|
||||||
export MACHINE=$OPT_M
|
|
||||||
rm -f build/conf/bblayers.conf \
|
|
||||||
build/conf/templateconf.cfg
|
|
||||||
|
|
||||||
mkdir -p $BUILD_DIR
|
|
||||||
|
|
||||||
source layers/poky/oe-init-build-env $BUILD_DIR
|
|
||||||
|
|
||||||
return 0
|
|
||||||
|
|
18
buildconf/raspberrypi3-64/bblayers.conf.sample
Normal file
18
buildconf/raspberrypi3-64/bblayers.conf.sample
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# 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-blackfinn \
|
||||||
|
${TOPDIR}/../layers/meta-rpi \
|
||||||
|
"
|
8
buildconf/raspberrypi3-64/conf-notes.txt
Normal file
8
buildconf/raspberrypi3-64/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
|
||||||
|
|
37
buildconf/raspberrypi3-64/local.conf.sample
Normal file
37
buildconf/raspberrypi3-64/local.conf.sample
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
MACHINE ?= "raspberrypi3-64"
|
||||||
|
|
||||||
|
DISTRO ?= "poky"
|
||||||
|
PACKAGE_CLASSES ?= "package_ipk"
|
||||||
|
|
||||||
|
#SDKMACHINE ?= "i686"
|
||||||
|
|
||||||
|
#EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
|
||||||
|
|
||||||
|
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
|
||||||
|
|
||||||
|
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 += "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"
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
# Defaults
|
|
||||||
OPT_M=raspberrypi3-64
|
|
||||||
BUILD_DIR=build
|
|
||||||
|
|
||||||
export TEMPLATECONF="../meta-rpi/buildconf"
|
|
||||||
|
|
||||||
source layers/meta-blackfinn/buildconf/default-init-build-env $BUILD_DIR
|
|
||||||
|
|
||||||
return 0
|
|
||||||
|
|
@ -4,7 +4,6 @@ BBPATH .= ":${LAYERDIR}"
|
|||||||
# We have recipes-* directories, add to BBFILES
|
# We have recipes-* directories, add to BBFILES
|
||||||
BBFILES += " \
|
BBFILES += " \
|
||||||
${LAYERDIR}/recipes-*/*/*.bb \
|
${LAYERDIR}/recipes-*/*/*.bb \
|
||||||
${LAYERDIR}/images/*.bb \
|
|
||||||
${LAYERDIR}/recipes-*/*/*.bbappend \
|
${LAYERDIR}/recipes-*/*/*.bbappend \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
2
recipes-core/base-files/base-files_3.0.14.bbappend
Normal file
2
recipes-core/base-files/base-files_3.0.14.bbappend
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||||
|
|
12
recipes-core/base-files/files/beaglebone-yocto/motd
Normal file
12
recipes-core/base-files/files/beaglebone-yocto/motd
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
______ _ ______ ______ _ _
|
||||||
|
| ___ \ | | | ___ \ | ___ \ | | |
|
||||||
|
| |_/ / ___ __ _ __ _| | ___| |_/ / ___ _ __ ___| |_/ / | __ _ ___| | __
|
||||||
|
| ___ \/ _ \/ _` |/ _` | |/ _ \ ___ \/ _ \| '_ \ / _ \ ___ \ |/ _` |/ __| |/ /
|
||||||
|
| |_/ / __/ (_| | (_| | | __/ |_/ / (_) | | | | __/ |_/ / | (_| | (__| <
|
||||||
|
\____/ \___|\__,_|\__, |_|\___\____/ \___/|_| |_|\___\____/|_|\__,_|\___|_|\_\
|
||||||
|
__/ |
|
||||||
|
|___/
|
||||||
|
|
||||||
|
|
12
recipes-core/base-files/files/raspberrypi3_64/motd
Normal file
12
recipes-core/base-files/files/raspberrypi3_64/motd
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
______ _ ______ _
|
||||||
|
| ___ \ | | | ___ (_)
|
||||||
|
| |_/ /__ _ ___ _ __ | |__ ___ _ __ _ __ _ _| |_/ /_
|
||||||
|
| // _` / __| '_ \| '_ \ / _ \ '__| '__| | | | __/| |
|
||||||
|
| |\ \ (_| \__ \ |_) | |_) | __/ | | | | |_| | | | |
|
||||||
|
\_| \_\__,_|___/ .__/|_.__/ \___|_| |_| \__, \_| |_|
|
||||||
|
| | __/ |
|
||||||
|
|_| |___/
|
||||||
|
|
||||||
|
|
@ -78,11 +78,14 @@ IMAGE_INSTALL += " \
|
|||||||
${WIFI_SUPPORT} \
|
${WIFI_SUPPORT} \
|
||||||
${MQTT} \
|
${MQTT} \
|
||||||
${PYTHON_LIBS} \
|
${PYTHON_LIBS} \
|
||||||
packagegroup-board \
|
"
|
||||||
|
|
||||||
|
IMAGE_INSTALL_beaglebone-yocto += "\
|
||||||
|
linux-firmware-rtl8192cu \
|
||||||
"
|
"
|
||||||
|
|
||||||
set_local_timezone() {
|
set_local_timezone() {
|
||||||
ln -sf /usr/share/zoneinfo/Etc/UTC ${IMAGE_ROOTFS}/etc/localtime
|
ln -sf /usr/share/zoneinfo/Europe/Berlin ${IMAGE_ROOTFS}/etc/localtime
|
||||||
}
|
}
|
||||||
|
|
||||||
disable_bootlogd() {
|
disable_bootlogd() {
|
@ -0,0 +1,32 @@
|
|||||||
|
# The loopback interface
|
||||||
|
auto lo
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
# Wireless interfaces
|
||||||
|
allow-hotplug wlan0
|
||||||
|
auto wlan0
|
||||||
|
iface wlan0 inet dhcp
|
||||||
|
wireless_mode managed
|
||||||
|
wireless_essid any
|
||||||
|
wpa-driver nl80211
|
||||||
|
wpa-conf /etc/wpa_supplicant.conf
|
||||||
|
wireless-power off
|
||||||
|
|
||||||
|
#iface atml0 inet dhcp
|
||||||
|
|
||||||
|
# Wired or wireless interfaces
|
||||||
|
auto eth0
|
||||||
|
iface eth0 inet dhcp
|
||||||
|
iface eth1 inet dhcp
|
||||||
|
|
||||||
|
# Ethernet/RNDIS gadget (g_ether)
|
||||||
|
# ... or on host side, usbnet and random hwaddr
|
||||||
|
iface usb0 inet static
|
||||||
|
address 192.168.7.2
|
||||||
|
netmask 255.255.255.0
|
||||||
|
network 192.168.7.0
|
||||||
|
gateway 192.168.7.1
|
||||||
|
|
||||||
|
# Bluetooth networking
|
||||||
|
iface bnep0 inet dhcp
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
# The loopback interface
|
||||||
|
auto lo
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
# Wireless interface
|
||||||
|
allow-hotplug wlan0
|
||||||
|
auto wlan0
|
||||||
|
iface wlan0 inet dhcp
|
||||||
|
wireless_mode managed
|
||||||
|
wireless_essid any
|
||||||
|
wpa-driver nl80211
|
||||||
|
wpa-conf /etc/wpa_supplicant.conf
|
||||||
|
wireless-power off
|
||||||
|
|
||||||
|
|
||||||
|
# Wired interface
|
||||||
|
auto eth0
|
||||||
|
iface eth0 inet dhcp
|
||||||
|
|
||||||
|
# Bluetooth networking
|
||||||
|
iface bnep0 inet dhcp
|
||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||||
|
|
32
recipes-devtools/opkg/files/bananapi-m3/opkg.conf
Normal file
32
recipes-devtools/opkg/files/bananapi-m3/opkg.conf
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# Must have one or more source entries of the form:
|
||||||
|
#
|
||||||
|
# src <src-name> <source-url>
|
||||||
|
#
|
||||||
|
# and one or more destination entries of the form:
|
||||||
|
#
|
||||||
|
# dest <dest-name> <target-path>
|
||||||
|
#
|
||||||
|
# where <src-name> and <dest-names> are identifiers that
|
||||||
|
# should match [a-zA-Z0-9._-]+, <source-url> should be a
|
||||||
|
# URL that points to a directory containing a Familiar
|
||||||
|
# Packages file, and <target-path> should be a directory
|
||||||
|
# that exists on the target system.
|
||||||
|
|
||||||
|
# Proxy Support
|
||||||
|
#option http_proxy http://proxy.tld:3128
|
||||||
|
#option ftp_proxy http://proxy.tld:3128
|
||||||
|
#option proxy_username <username>
|
||||||
|
#option proxy_password <password>
|
||||||
|
|
||||||
|
# Enable GPGME signature
|
||||||
|
# option check_signature 1
|
||||||
|
|
||||||
|
# Offline mode (for use in constructing flash images offline)
|
||||||
|
#option offline_root target
|
||||||
|
|
||||||
|
src/gz all https://opkg.blackfinn.de/thud/all
|
||||||
|
src/gz armv7vet2hf-neon https://opkg.blackfinn.de/thud/armv7vet2hf-neon
|
||||||
|
src/gz bananapi_m3 https://opkg.blackfinn.de/thud/bananapi_m3
|
||||||
|
|
||||||
|
# Default destination for installed packages
|
||||||
|
dest root /
|
32
recipes-devtools/opkg/files/beaglebone-yocto/opkg.conf
Normal file
32
recipes-devtools/opkg/files/beaglebone-yocto/opkg.conf
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# Must have one or more source entries of the form:
|
||||||
|
#
|
||||||
|
# src <src-name> <source-url>
|
||||||
|
#
|
||||||
|
# and one or more destination entries of the form:
|
||||||
|
#
|
||||||
|
# dest <dest-name> <target-path>
|
||||||
|
#
|
||||||
|
# where <src-name> and <dest-names> are identifiers that
|
||||||
|
# should match [a-zA-Z0-9._-]+, <source-url> should be a
|
||||||
|
# URL that points to a directory containing a Familiar
|
||||||
|
# Packages file, and <target-path> should be a directory
|
||||||
|
# that exists on the target system.
|
||||||
|
|
||||||
|
# Proxy Support
|
||||||
|
#option http_proxy http://proxy.tld:3128
|
||||||
|
#option ftp_proxy http://proxy.tld:3128
|
||||||
|
#option proxy_username <username>
|
||||||
|
#option proxy_password <password>
|
||||||
|
|
||||||
|
# Enable GPGME signature
|
||||||
|
# option check_signature 1
|
||||||
|
|
||||||
|
# Offline mode (for use in constructing flash images offline)
|
||||||
|
#option offline_root target
|
||||||
|
|
||||||
|
src/gz all https://opkg.blackfinn.de/thud/all
|
||||||
|
src/gz beaglebone https://opkg.blackfinn.de/thud/beaglebone
|
||||||
|
src/gz cortexa8hf-neon https://opkg.blackfinn.de/thud/cortexa8hf-neon
|
||||||
|
|
||||||
|
# Default destination for installed packages
|
||||||
|
dest root /
|
32
recipes-devtools/opkg/files/raspberrypi3_64/opkg.conf
Normal file
32
recipes-devtools/opkg/files/raspberrypi3_64/opkg.conf
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# Must have one or more source entries of the form:
|
||||||
|
#
|
||||||
|
# src <src-name> <source-url>
|
||||||
|
#
|
||||||
|
# and one or more destination entries of the form:
|
||||||
|
#
|
||||||
|
# dest <dest-name> <target-path>
|
||||||
|
#
|
||||||
|
# where <src-name> and <dest-names> are identifiers that
|
||||||
|
# should match [a-zA-Z0-9._-]+, <source-url> should be a
|
||||||
|
# URL that points to a directory containing a Familiar
|
||||||
|
# Packages file, and <target-path> should be a directory
|
||||||
|
# that exists on the target system.
|
||||||
|
|
||||||
|
# Proxy Support
|
||||||
|
#option http_proxy http://proxy.tld:3128
|
||||||
|
#option ftp_proxy http://proxy.tld:3128
|
||||||
|
#option proxy_username <username>
|
||||||
|
#option proxy_password <password>
|
||||||
|
|
||||||
|
# Enable GPGME signature
|
||||||
|
# option check_signature 1
|
||||||
|
|
||||||
|
# Offline mode (for use in constructing flash images offline)
|
||||||
|
#option offline_root target
|
||||||
|
|
||||||
|
src/gz all https://opkg.blackfinn.de/thud/all
|
||||||
|
src/gz raspberrypi3_64 https://opkg.blackfinn.de/thud/raspberrypi3_64
|
||||||
|
src/gz aarch64 https://opkg.blackfinn.de/thud/aarch64
|
||||||
|
|
||||||
|
# Default destination for installed packages
|
||||||
|
dest root /
|
2
recipes-devtools/opkg/opkg_0.%.bbappend
Normal file
2
recipes-devtools/opkg/opkg_0.%.bbappend
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||||
|
|
153
recipes-kernel/linux/files/defconfig
Normal file
153
recipes-kernel/linux/files/defconfig
Normal file
@ -0,0 +1,153 @@
|
|||||||
|
CONFIG_NO_HZ=y
|
||||||
|
CONFIG_HIGH_RES_TIMERS=y
|
||||||
|
CONFIG_CGROUPS=y
|
||||||
|
CONFIG_BLK_DEV_INITRD=y
|
||||||
|
CONFIG_PERF_EVENTS=y
|
||||||
|
CONFIG_MODULES=y
|
||||||
|
CONFIG_MODULE_UNLOAD=y
|
||||||
|
CONFIG_ARCH_SUNXI=y
|
||||||
|
CONFIG_SMP=y
|
||||||
|
CONFIG_NR_CPUS=8
|
||||||
|
CONFIG_AEABI=y
|
||||||
|
CONFIG_HIGHMEM=y
|
||||||
|
CONFIG_CMA=y
|
||||||
|
CONFIG_ARM_APPENDED_DTB=y
|
||||||
|
CONFIG_ARM_ATAG_DTB_COMPAT=y
|
||||||
|
CONFIG_CPU_FREQ=y
|
||||||
|
CONFIG_CPUFREQ_DT=y
|
||||||
|
CONFIG_VFP=y
|
||||||
|
CONFIG_NEON=y
|
||||||
|
CONFIG_NET=y
|
||||||
|
CONFIG_PACKET=y
|
||||||
|
CONFIG_UNIX=y
|
||||||
|
CONFIG_INET=y
|
||||||
|
CONFIG_IP_PNP=y
|
||||||
|
CONFIG_IP_PNP_DHCP=y
|
||||||
|
CONFIG_IP_PNP_BOOTP=y
|
||||||
|
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
|
||||||
|
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
|
||||||
|
# CONFIG_INET_XFRM_MODE_BEET is not set
|
||||||
|
# CONFIG_INET_DIAG is not set
|
||||||
|
# CONFIG_IPV6 is not set
|
||||||
|
CONFIG_CAN=y
|
||||||
|
CONFIG_CAN_SUN4I=y
|
||||||
|
# CONFIG_WIRELESS is not set
|
||||||
|
CONFIG_DEVTMPFS=y
|
||||||
|
CONFIG_DEVTMPFS_MOUNT=y
|
||||||
|
CONFIG_DMA_CMA=y
|
||||||
|
CONFIG_BLK_DEV_SD=y
|
||||||
|
CONFIG_ATA=y
|
||||||
|
CONFIG_AHCI_SUNXI=y
|
||||||
|
CONFIG_NETDEVICES=y
|
||||||
|
CONFIG_SUN4I_EMAC=y
|
||||||
|
# CONFIG_NET_VENDOR_ARC is not set
|
||||||
|
# CONFIG_NET_CADENCE is not set
|
||||||
|
# CONFIG_NET_VENDOR_BROADCOM is not set
|
||||||
|
# CONFIG_NET_VENDOR_CIRRUS is not set
|
||||||
|
# CONFIG_NET_VENDOR_FARADAY is not set
|
||||||
|
# CONFIG_NET_VENDOR_INTEL is not set
|
||||||
|
# CONFIG_NET_VENDOR_MARVELL is not set
|
||||||
|
# CONFIG_NET_VENDOR_MICREL is not set
|
||||||
|
# CONFIG_NET_VENDOR_MICROCHIP is not set
|
||||||
|
# CONFIG_NET_VENDOR_NATSEMI is not set
|
||||||
|
# CONFIG_NET_VENDOR_SAMSUNG is not set
|
||||||
|
# CONFIG_NET_VENDOR_SEEQ is not set
|
||||||
|
# CONFIG_NET_VENDOR_SMSC is not set
|
||||||
|
CONFIG_STMMAC_ETH=y
|
||||||
|
# CONFIG_NET_VENDOR_VIA is not set
|
||||||
|
# CONFIG_NET_VENDOR_WIZNET is not set
|
||||||
|
# CONFIG_WLAN is not set
|
||||||
|
CONFIG_INPUT_EVDEV=y
|
||||||
|
CONFIG_KEYBOARD_SUN4I_LRADC=y
|
||||||
|
# CONFIG_INPUT_MOUSE is not set
|
||||||
|
CONFIG_INPUT_TOUCHSCREEN=y
|
||||||
|
CONFIG_TOUCHSCREEN_SUN4I=y
|
||||||
|
CONFIG_INPUT_MISC=y
|
||||||
|
CONFIG_INPUT_AXP20X_PEK=y
|
||||||
|
CONFIG_SERIAL_8250=y
|
||||||
|
CONFIG_SERIAL_8250_CONSOLE=y
|
||||||
|
CONFIG_SERIAL_8250_NR_UARTS=8
|
||||||
|
CONFIG_SERIAL_8250_RUNTIME_UARTS=8
|
||||||
|
CONFIG_SERIAL_8250_DW=y
|
||||||
|
CONFIG_SERIAL_OF_PLATFORM=y
|
||||||
|
# CONFIG_HW_RANDOM is not set
|
||||||
|
CONFIG_I2C_CHARDEV=y
|
||||||
|
CONFIG_I2C_MV64XXX=y
|
||||||
|
CONFIG_I2C_SUN6I_P2WI=y
|
||||||
|
CONFIG_SPI=y
|
||||||
|
CONFIG_SPI_SUN4I=y
|
||||||
|
CONFIG_SPI_SUN6I=y
|
||||||
|
CONFIG_GPIO_SYSFS=y
|
||||||
|
CONFIG_POWER_SUPPLY=y
|
||||||
|
CONFIG_CHARGER_AXP20X=y
|
||||||
|
CONFIG_BATTERY_AXP20X=y
|
||||||
|
CONFIG_AXP20X_POWER=y
|
||||||
|
CONFIG_THERMAL=y
|
||||||
|
CONFIG_CPU_THERMAL=y
|
||||||
|
CONFIG_WATCHDOG=y
|
||||||
|
CONFIG_SUNXI_WATCHDOG=y
|
||||||
|
CONFIG_MFD_AC100=y
|
||||||
|
CONFIG_MFD_AXP20X_I2C=y
|
||||||
|
CONFIG_MFD_AXP20X_RSB=y
|
||||||
|
CONFIG_REGULATOR=y
|
||||||
|
CONFIG_REGULATOR_FIXED_VOLTAGE=y
|
||||||
|
CONFIG_REGULATOR_AXP20X=y
|
||||||
|
CONFIG_REGULATOR_GPIO=y
|
||||||
|
CONFIG_MEDIA_SUPPORT=y
|
||||||
|
CONFIG_RC_CORE=y
|
||||||
|
CONFIG_RC_DEVICES=y
|
||||||
|
CONFIG_IR_SUNXI=y
|
||||||
|
CONFIG_DRM=y
|
||||||
|
CONFIG_DRM_SUN4I=y
|
||||||
|
CONFIG_DRM_DUMB_VGA_DAC=y
|
||||||
|
CONFIG_FB_SIMPLE=y
|
||||||
|
CONFIG_SOUND=y
|
||||||
|
CONFIG_SND=y
|
||||||
|
CONFIG_SND_SOC=y
|
||||||
|
CONFIG_SND_SUN4I_CODEC=y
|
||||||
|
CONFIG_USB=y
|
||||||
|
CONFIG_USB_EHCI_HCD=y
|
||||||
|
CONFIG_USB_EHCI_HCD_PLATFORM=y
|
||||||
|
CONFIG_USB_OHCI_HCD=y
|
||||||
|
CONFIG_USB_OHCI_HCD_PLATFORM=y
|
||||||
|
CONFIG_USB_MUSB_HDRC=y
|
||||||
|
CONFIG_USB_MUSB_SUNXI=y
|
||||||
|
CONFIG_NOP_USB_XCEIV=y
|
||||||
|
CONFIG_USB_GADGET=y
|
||||||
|
CONFIG_MMC=y
|
||||||
|
CONFIG_MMC_SUNXI=y
|
||||||
|
CONFIG_NEW_LEDS=y
|
||||||
|
CONFIG_LEDS_CLASS=y
|
||||||
|
CONFIG_LEDS_GPIO=y
|
||||||
|
CONFIG_LEDS_TRIGGERS=y
|
||||||
|
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
|
||||||
|
CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
|
||||||
|
CONFIG_RTC_CLASS=y
|
||||||
|
# CONFIG_RTC_INTF_SYSFS is not set
|
||||||
|
# CONFIG_RTC_INTF_PROC is not set
|
||||||
|
CONFIG_RTC_DRV_AC100=y
|
||||||
|
CONFIG_RTC_DRV_SUNXI=y
|
||||||
|
CONFIG_DMADEVICES=y
|
||||||
|
CONFIG_DMA_SUN6I=y
|
||||||
|
# CONFIG_IOMMU_SUPPORT is not set
|
||||||
|
CONFIG_EXTCON=y
|
||||||
|
CONFIG_IIO=y
|
||||||
|
CONFIG_AXP20X_ADC=y
|
||||||
|
CONFIG_PWM=y
|
||||||
|
CONFIG_PWM_SUN4I=y
|
||||||
|
CONFIG_PHY_SUN4I_USB=y
|
||||||
|
CONFIG_PHY_SUN9I_USB=y
|
||||||
|
CONFIG_NVMEM=y
|
||||||
|
CONFIG_NVMEM_SUNXI_SID=y
|
||||||
|
CONFIG_EXT4_FS=y
|
||||||
|
CONFIG_VFAT_FS=y
|
||||||
|
CONFIG_TMPFS=y
|
||||||
|
CONFIG_NFS_FS=y
|
||||||
|
CONFIG_NFS_V3_ACL=y
|
||||||
|
CONFIG_NFS_V4=y
|
||||||
|
CONFIG_ROOT_NFS=y
|
||||||
|
CONFIG_NLS_CODEPAGE_437=y
|
||||||
|
CONFIG_NLS_ISO8859_1=y
|
||||||
|
CONFIG_PRINTK_TIME=y
|
||||||
|
CONFIG_DEBUG_FS=y
|
||||||
|
CONFIG_CRYPTO_DEV_SUN4I_SS=y
|
27
recipes-kernel/linux/linux-mainline_4.20.15.bb
Normal file
27
recipes-kernel/linux/linux-mainline_4.20.15.bb
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
SECTION = "kernel"
|
||||||
|
DESCRIPTION = "Mainline Linux kernel"
|
||||||
|
LICENSE = "GPLv2"
|
||||||
|
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
||||||
|
COMPATIBLE_MACHINE = "sun8i"
|
||||||
|
|
||||||
|
inherit kernel
|
||||||
|
|
||||||
|
# Since we're not using git, this doesn't make a difference, but we need to fill
|
||||||
|
# in something or kernel-yocto.bbclass will fail.
|
||||||
|
KBRANCH ?= "master"
|
||||||
|
|
||||||
|
# Pull in the devicetree files into the rootfs
|
||||||
|
RDEPENDS_${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree"
|
||||||
|
|
||||||
|
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/linux-${PV}"
|
||||||
|
|
||||||
|
SRC_URI[md5sum] = "8e2e10238ce5698904e9ea1e851f4ddd"
|
||||||
|
SRC_URI[sha256sum] = "d93b1b216e909e4ea8441a41a070f839f55ac9cf5f7effb16e1b04e7f5688407"
|
||||||
|
|
||||||
|
SRC_URI = " \
|
||||||
|
https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz \
|
||||||
|
file://defconfig \
|
||||||
|
"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user