meta-blackfinn: Unify layer structure
Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
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/bananapi-m3/motd
Normal file
12
recipes-core/base-files/files/bananapi-m3/motd
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
______ _ ___ ___ _____
|
||||
| ___ \ (_) | \/ ||____ |
|
||||
| |_/ / __ _ _ __ __ _ _ __ __ _ _ __ _ | . . | / /
|
||||
| ___ \/ _` | '_ \ / _` | '_ \ / _` | '_ \| | | |\/| | \ \
|
||||
| |_/ / (_| | | | | (_| | | | | (_| | |_) | | | | | |.___/ /
|
||||
\____/ \__,_|_| |_|\__,_|_| |_|\__,_| .__/|_| \_| |_/\____/
|
||||
| |
|
||||
|_|
|
||||
|
||||
|
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 @@
|
||||
|
||||
|
||||
______ _ ______ _
|
||||
| ___ \ | | | ___ (_)
|
||||
| |_/ /__ _ ___ _ __ | |__ ___ _ __ _ __ _ _| |_/ /_
|
||||
| // _` / __| '_ \| '_ \ / _ \ '__| '__| | | | __/| |
|
||||
| |\ \ (_| \__ \ |_) | |_) | __/ | | | | |_| | | | |
|
||||
\_| \_\__,_|___/ .__/|_.__/ \___|_| |_| \__, \_| |_|
|
||||
| | __/ |
|
||||
|_| |___/
|
||||
|
||||
|
100
recipes-core/images/console-image.bb
Normal file
100
recipes-core/images/console-image.bb
Normal file
@@ -0,0 +1,100 @@
|
||||
SUMMARY = "A console image with some additional tools"
|
||||
HOMEPAGE = "https://blackfinn.de"
|
||||
LICENSE = "MIT"
|
||||
|
||||
inherit core-image extrausers
|
||||
|
||||
IMAGE_FEATURES += "package-management"
|
||||
|
||||
# Encrypt the password with: echo "<password>" | openssl passwd -1 -stdin
|
||||
EXTRA_USERS_PARAMS = " \
|
||||
usermod -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' root; \
|
||||
useradd -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' tkl; \
|
||||
"
|
||||
|
||||
CORE_OS = " \
|
||||
openssh \
|
||||
openssh-keygen \
|
||||
openssh-sftp-server \
|
||||
psplash \
|
||||
tzdata \
|
||||
"
|
||||
|
||||
KERNEL_EXTRA_INSTALL = " \
|
||||
kernel-modules \
|
||||
"
|
||||
|
||||
WIFI_SUPPORT = " \
|
||||
iw \
|
||||
wpa-supplicant \
|
||||
"
|
||||
|
||||
DEV_SDK_INSTALL = " \
|
||||
file \
|
||||
git \
|
||||
make \
|
||||
perl-modules \
|
||||
pkgconfig \
|
||||
python-modules \
|
||||
"
|
||||
|
||||
EXTRA_TOOLS_INSTALL = " \
|
||||
acpid \
|
||||
bc \
|
||||
bzip2 \
|
||||
dosfstools \
|
||||
e2fsprogs-mke2fs \
|
||||
ethtool \
|
||||
findutils \
|
||||
htop \
|
||||
i2c-tools \
|
||||
less \
|
||||
mc \
|
||||
procps \
|
||||
rsync \
|
||||
sysfsutils \
|
||||
unzip \
|
||||
util-linux \
|
||||
util-linux-blkid \
|
||||
vim \
|
||||
wget \
|
||||
curl \
|
||||
zip \
|
||||
ntp \
|
||||
"
|
||||
|
||||
MQTT = " \
|
||||
python-paho-mqtt \
|
||||
"
|
||||
|
||||
PYTHON_LIBS = " \
|
||||
"
|
||||
|
||||
IMAGE_INSTALL += " \
|
||||
${CORE_OS} \
|
||||
${DEV_SDK_INSTALL} \
|
||||
${EXTRA_TOOLS_INSTALL} \
|
||||
${KERNEL_EXTRA_INSTALL} \
|
||||
${WIFI_SUPPORT} \
|
||||
${MQTT} \
|
||||
${PYTHON_LIBS} \
|
||||
"
|
||||
|
||||
IMAGE_INSTALL_append_beaglebone-yocto = " linux-firmware-rtl8192cu"
|
||||
IMAGE_INSTALL_append_bananapi-m3 += " linux-firmware-bcm43430"
|
||||
|
||||
set_local_timezone() {
|
||||
ln -sf /usr/share/zoneinfo/Europe/Berlin ${IMAGE_ROOTFS}/etc/localtime
|
||||
}
|
||||
|
||||
disable_bootlogd() {
|
||||
echo BOOTLOGD_ENABLE=no > ${IMAGE_ROOTFS}/etc/default/bootlogd
|
||||
}
|
||||
|
||||
ROOTFS_POSTPROCESS_COMMAND += " \
|
||||
set_local_timezone ; \
|
||||
disable_bootlogd ; \
|
||||
"
|
||||
|
||||
export IMAGE_BASENAME = "console-image"
|
||||
|
@@ -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:"
|
||||
|
Reference in New Issue
Block a user