mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2025-08-03 06:31:10 +02:00
refactory remove all common recipes
This commit is contained in:
@ -1,40 +0,0 @@
|
||||
#webrtc-audio-processing \
|
||||
pulseaudio \
|
||||
pulseaudio-server \
|
||||
alsa-utils \
|
||||
pulseaudio-module-alsa-card \
|
||||
pulseaudio-module-alsa-source \
|
||||
pulseaudio-module-alsa-sink \
|
||||
pulseaudio-module-cli \
|
||||
pulseaudio-module-echo-cancel \
|
||||
pulseaudio-misc \
|
||||
i2c-tools \
|
||||
mpg123
|
||||
libsdl2-mixer \
|
||||
#tslib
|
||||
#tslib-tests
|
||||
#tslib-calibrate
|
||||
#tslib-uinput
|
||||
|
||||
libsdl2 \
|
||||
libsdl2-ttf \
|
||||
libsdl2-image \
|
||||
libsdl2-mixer \
|
||||
libsdl2-net \
|
||||
# v4l-utils
|
||||
evtest
|
||||
|
||||
# openvt -v -c 5 -- /usr/bin/weston --tty=/dev/tty5
|
||||
|
||||
mesa \
|
||||
mesa-demos \
|
||||
libgbm \
|
||||
|
||||
|
||||
dtdebug=1
|
||||
dtoverlay=vc4-kms-v3d
|
||||
dtoverlay=vc4-kms-dpi-generic,hactive=480,hfp=26,hsync=16,hbp=10
|
||||
dtparam=vactive=640,vfp=25,vsync=10,vbp=16
|
||||
dtparam=clock-frequency=32000000,rgb666-padhi
|
||||
|
||||
Diyas symbolise goodness and purity, and lighting them denotes dispelling darkness and going into light.
|
@ -1 +0,0 @@
|
||||
core-image-minimal.bbappend
|
@ -1,66 +1,5 @@
|
||||
inherit extrausers
|
||||
|
||||
KERNEL_DEVICETREE:append = "${@bb.utils.contains('RPI_USE_wS_28_DPI_LCD', '1', ' overlays/dpi24.dtbo overlays/vc4-kms-dpi-generic.dtbo overlays/ads1115-i2c-gpio.dtbo overlays/ads1115-i2c-gpio.dtbo overlays/vc4-kms-DPI-28inch.dtbo overlays/waveshare-28dpi-3b-4b.dtbo overlays/waveshare-28dpi-3b.dtbo overlays/waveshare-28dpi-4b.dtbo ', ' ', d)}"
|
||||
KERNEL_DEVICETREE:append = "${@bb.utils.contains('RPI_USE_wS_28_DPI_LCD', '1', ' overlays/dpi24.dtbo overlays/vc4-kms-dpi-generic.dtbo overlays/ads1115-i2c-gpio.dtbo overlays/ads1115-i2c-gpio.dtbo overlays/vc4-kms-DPI-28inch.dtbo overlays/waveshare-28dpi-3b-4b.dtbo overlays/waveshare-28dpi-3b.dtbo overlays/waveshare-28dpi-4b.dtbo ', ' ', d)}" "
|
||||
IMAGE_BOOT_FILES:append = " extraconfig.txt "
|
||||
|
||||
# usermod -p BJpK8ADNDLsGg root;
|
||||
EXTRA_USERS_PARAMS = "usermod -p 2Pe/4xyFxsokE diya; \
|
||||
usermod -a -G video diya; \
|
||||
usermod -a -G tty diya; \
|
||||
usermod -a -G input diya; \
|
||||
usermod -a -G dialout diya; \
|
||||
usermod -a -G audio diya; \
|
||||
usermod -a -G avahi diya; \
|
||||
usermod -a -G sudo diya \
|
||||
"
|
||||
IMAGE_BOOT_FILES:append = "fs_resize extraconfig.txt recovery-${MACHINE}.cpio.gz "
|
||||
|
||||
IMAGE_INSTALL:append = "libcurl \
|
||||
libdrm \
|
||||
libgbm \
|
||||
libgles2 \
|
||||
libegl-mesa \
|
||||
libglapi \
|
||||
libudev \
|
||||
libinput \
|
||||
pango \
|
||||
libxkbcommon \
|
||||
xkeyboard-config \
|
||||
seatd \
|
||||
pixman \
|
||||
cairo \
|
||||
glib-2.0 \
|
||||
udev \
|
||||
glew \
|
||||
freetype \
|
||||
fontconfig \
|
||||
librsvg librsvg-gtk \
|
||||
gdk-pixbuf \
|
||||
gtk-layer-shell \
|
||||
gobject-introspection \
|
||||
l3afpad \
|
||||
mesa \
|
||||
sudo \
|
||||
htop \
|
||||
waveshare-2.8-lcd \
|
||||
realtekfw \
|
||||
diya-overlay \
|
||||
i2c-tools \
|
||||
bash \
|
||||
nano \
|
||||
wpa-supplicant \
|
||||
evtest \
|
||||
raspi-gpio \
|
||||
rsync \
|
||||
coreutils \
|
||||
wayland wayland-protocols \
|
||||
labwc foot swaybg swayidle swaylock wlr-randr wlopm sfwbar tofi wtype \
|
||||
mc \
|
||||
gdbserver \
|
||||
"
|
||||
|
||||
IMAGE_PREPROCESS_COMMAND += "image_patch;"
|
||||
|
||||
image_patch () {
|
||||
# delete unused kernel image
|
||||
rm -rf ${IMAGE_ROOTFS}/boot/*
|
||||
}
|
||||
IMAGE_INSTALL:append = " waveshare-2.8-lcd realtekfw "
|
@ -1,53 +0,0 @@
|
||||
|
||||
DESCRIPTION = "Recovery initramfs image."
|
||||
|
||||
|
||||
PACKAGE_INSTALL = "recovery-boot \
|
||||
dosfstools \
|
||||
e2fsprogs \
|
||||
util-linux-fsck \
|
||||
kernel-modules \
|
||||
busybox \
|
||||
sysvinit \
|
||||
sysvinit-inittab \
|
||||
${VIRTUAL-RUNTIME_base-utils} \
|
||||
udev \
|
||||
initscripts \
|
||||
base-passwd \
|
||||
${ROOTFS_BOOTSTRAP_INSTALL}"
|
||||
|
||||
# Do not pollute the initrd image with rootfs features
|
||||
IMAGE_FEATURES = ""
|
||||
|
||||
export IMAGE_BASENAME = "${MLPREFIX}recovery"
|
||||
IMAGE_NAME_SUFFIX ?= ""
|
||||
IMAGE_LINGUAS = ""
|
||||
|
||||
LICENSE = "MIT"
|
||||
|
||||
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
|
||||
inherit core-image extrausers
|
||||
|
||||
IMAGE_ROOTFS_SIZE = "8192"
|
||||
IMAGE_ROOTFS_EXTRA_SPACE = "0"
|
||||
|
||||
EXTRA_USERS_PARAMS = "usermod -p 2Pe/4xyFxsokE root "
|
||||
|
||||
# Use the same restriction as initramfs-module-install
|
||||
COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)'
|
||||
|
||||
IMAGE_PREPROCESS_COMMAND += "image_patch;"
|
||||
|
||||
image_patch () {
|
||||
# delete unused image
|
||||
rm -rf ${IMAGE_ROOTFS}/boot/*
|
||||
# create /etc/fstab
|
||||
cat << EOF > ${IMAGE_ROOTFS}/etc/fstab
|
||||
/dev/mmcblk0p1 /boot auto defaults 0 0
|
||||
/dev/mmcblk0p4 /home auto defaults 0 0
|
||||
|
||||
EOF
|
||||
cat << EOF > ${IMAGE_ROOTFS}/etc/hostname
|
||||
diya-recovery
|
||||
EOF
|
||||
}
|
7
recipes-core/images/core-image-recovery.bbapend
Normal file
7
recipes-core/images/core-image-recovery.bbapend
Normal file
@ -0,0 +1,7 @@
|
||||
image_patch:append () {
|
||||
# create /etc/fstab
|
||||
cat << EOF > ${IMAGE_ROOTFS}/etc/fstab
|
||||
/dev/mmcblk0p1 /boot auto defaults 0 0
|
||||
/dev/mmcblk0p4 /home auto defaults 0 0
|
||||
EOF
|
||||
}
|
Reference in New Issue
Block a user