Compare commits
19 Commits
4ec5c71110
...
master
Author | SHA1 | Date | |
---|---|---|---|
618e82e453 | |||
8045fc257d | |||
d176616617 | |||
bb5a5245c8 | |||
a9cce7b660 | |||
958a5aa658 | |||
797a54d2d9 | |||
ae474d490f | |||
be8b6c5cf0 | |||
ae13e50979 | |||
e8677f7618 | |||
2fc68b049d | |||
aa120fd4f6 | |||
5c2c49c639 | |||
1b87e10297 | |||
70caa69660 | |||
7b75b29500 | |||
8791a5d86d | |||
b333742f9f |
@ -10,7 +10,7 @@ BBFILE_PATTERN_meta-diya = "^${LAYERDIR}/"
|
|||||||
BBFILE_PRIORITY_meta-diya = "11"
|
BBFILE_PRIORITY_meta-diya = "11"
|
||||||
|
|
||||||
LAYERDEPENDS_meta-diya = " core "
|
LAYERDEPENDS_meta-diya = " core "
|
||||||
LAYERSERIES_COMPAT_meta-diya = "scarthgap"
|
LAYERSERIES_COMPAT_meta-diya = "walnascar"
|
||||||
|
|
||||||
PACKAGE_CLASSES = "package_ipk"
|
PACKAGE_CLASSES = "package_ipk"
|
||||||
|
|
||||||
@ -20,9 +20,9 @@ INITRAMFS_MAXSIZE="200000"
|
|||||||
INHERIT += "rm_work"
|
INHERIT += "rm_work"
|
||||||
|
|
||||||
EXTRA_IMAGE_FEATURES ?= " ssh-server-dropbear read-only-rootfs "
|
EXTRA_IMAGE_FEATURES ?= " ssh-server-dropbear read-only-rootfs "
|
||||||
DISTRO_FEATURES:append := " opengl "
|
DISTRO_FEATURES:append := " opengl pam "
|
||||||
DISTRO_FEATURES:remove = " x11 vulkan ptest "
|
DISTRO_FEATURES:remove = " x11 vulkan ptest "
|
||||||
TOOLCHAIN_TARGET_TASK:append = " libgles3-mesa-dev "
|
TOOLCHAIN_TARGET_TASK:append := " libgles3-mesa-dev "
|
||||||
# DISTRO_FEATURES:append := " vc4-gfx opengl directfb "
|
# DISTRO_FEATURES:append := " vc4-gfx opengl directfb "
|
||||||
|
|
||||||
WKS_FILE="image.wks.in"
|
WKS_FILE="image.wks.in"
|
||||||
|
@ -5,6 +5,7 @@ do_install:append () {
|
|||||||
export GDK_BACKEND=wayland
|
export GDK_BACKEND=wayland
|
||||||
export XDG_RUNTIME_DIR=/home/$USER/.xdg
|
export XDG_RUNTIME_DIR=/home/$USER/.xdg
|
||||||
export XDG_CONFIG_HOME=/home/$USER/.config
|
export XDG_CONFIG_HOME=/home/$USER/.config
|
||||||
|
export XDG_CACHE_HOME=/home/$USER/.cache
|
||||||
export PATH=$PATH:/home/$USER/bin:/home/$USER/.local/bin
|
export PATH=$PATH:/home/$USER/bin:/home/$USER/.local/bin
|
||||||
export LD_LIBRARY_PATH=/home/$USER/lib:/home/$USER/.local/lib
|
export LD_LIBRARY_PATH=/home/$USER/lib:/home/$USER/.local/lib
|
||||||
export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
|
export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
|
||||||
@ -21,3 +22,11 @@ cat << EOF >> "${D}${sysconfdir}/profile"
|
|||||||
export MACHINE=${MACHINE}
|
export MACHINE=${MACHINE}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# workaround for Qemu mouse problem:
|
||||||
|
# https://github.com/swaywm/sway/issues/6581
|
||||||
|
do_install:append:qemux86-64 () {
|
||||||
|
cat << 'EOF' >> "${D}${sysconfdir}/profile"
|
||||||
|
export WLR_NO_HARDWARE_CURSORS=1
|
||||||
|
EOF
|
||||||
|
}
|
@ -3,5 +3,5 @@ SRC_URI += "file://default"
|
|||||||
|
|
||||||
do_install:append () {
|
do_install:append () {
|
||||||
rm -rf ${D}/etc/dropbear
|
rm -rf ${D}/etc/dropbear
|
||||||
install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/dropbear
|
install -m 0644 ${UNPACKDIR}/default ${D}${sysconfdir}/default/dropbear
|
||||||
}
|
}
|
@ -8,7 +8,7 @@ EXTRA_USERS_PARAMS = "usermod -d /home/diya -p 2Pe/4xyFxsokE diya; \
|
|||||||
usermod -a -G audio diya; \
|
usermod -a -G audio diya; \
|
||||||
usermod -a -G sudo diya; \
|
usermod -a -G sudo diya; \
|
||||||
"
|
"
|
||||||
IMAGE_BOOT_FILES:append = " fs_resize config.txt recovery-${MACHINE}.cpio.gz Image "
|
IMAGE_BOOT_FILES:append = " fs_resize diya-config.txt recovery-${MACHINE}.cpio.gz Image "
|
||||||
|
|
||||||
IMAGE_INSTALL:append = "kernel-modules \
|
IMAGE_INSTALL:append = "kernel-modules \
|
||||||
e2fsprogs \
|
e2fsprogs \
|
||||||
@ -20,6 +20,7 @@ IMAGE_INSTALL:append = "kernel-modules \
|
|||||||
libglapi \
|
libglapi \
|
||||||
libudev \
|
libudev \
|
||||||
libinput \
|
libinput \
|
||||||
|
libpam \
|
||||||
diya-overlay \
|
diya-overlay \
|
||||||
seatd \
|
seatd \
|
||||||
libxkbcommon \
|
libxkbcommon \
|
||||||
@ -32,7 +33,8 @@ IMAGE_INSTALL:append = "kernel-modules \
|
|||||||
i2c-tools \
|
i2c-tools \
|
||||||
bash \
|
bash \
|
||||||
nano \
|
nano \
|
||||||
wpa-supplicant \
|
iwd \
|
||||||
|
networkmanager networkmanager-nmcli networkmanager-bluetooth dhcpcd \
|
||||||
evtest \
|
evtest \
|
||||||
rsync \
|
rsync \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
@ -8,27 +8,30 @@ EXTRA_USERS_PARAMS:append = "useradd xdg; \
|
|||||||
usermod -a -G input xdg; \
|
usermod -a -G input xdg; \
|
||||||
usermod -a -G tty xdg; \
|
usermod -a -G tty xdg; \
|
||||||
usermod -a -G avahi diya; \
|
usermod -a -G avahi diya; \
|
||||||
|
usermod -a -G seat diya; \
|
||||||
|
usermod -a -G seat xdg; \
|
||||||
usermod -a -G xdg diya;"
|
usermod -a -G xdg diya;"
|
||||||
IMAGE_INSTALL:append = "pango \
|
IMAGE_INSTALL:append = "pango \
|
||||||
seatd \
|
seatd \
|
||||||
pixman \
|
pixman \
|
||||||
cairo \
|
cairo \
|
||||||
glib-2.0 \
|
glib-2.0 \
|
||||||
|
glibmm \
|
||||||
freetype \
|
freetype \
|
||||||
fontconfig \
|
fontconfig \
|
||||||
librsvg librsvg-gtk \
|
librsvg librsvg-gtk \
|
||||||
gdk-pixbuf \
|
gdk-pixbuf \
|
||||||
gtk4 \
|
gtk4 \
|
||||||
gtk4-layer-shell \
|
gtk4-layer-shell \
|
||||||
|
libadwaita \
|
||||||
gobject-introspection \
|
gobject-introspection \
|
||||||
wayland wayland-protocols \
|
wayland wayland-protocols wlroots-0.18 \
|
||||||
foot swaybg swayidle swaylock tofi wtype \
|
foot \
|
||||||
mc \
|
mc \
|
||||||
gdbserver gdb \
|
gdbserver gdb \
|
||||||
labwc \
|
|
||||||
wlr-randr \
|
wlr-randr \
|
||||||
diya-session-manager \
|
diya-session-manager \
|
||||||
"
|
"
|
||||||
PACKAGE_EXCLUDE = " gtk+ gtk+3 adwaita-icon-theme "
|
PACKAGE_EXCLUDE = " gtk+ gtk+3 adwaita-icon-theme "
|
||||||
IMAGE_INSTALL:remove = " gtk+ gtk+3 adwaita-icon-theme "
|
IMAGE_INSTALL:remove = " gtk+ gtk+3 adwaita-icon-theme "
|
||||||
# wlr-randr l3afpad wlopm cairo-egl
|
# wlr-randr l3afpad wlopm cairo-egl webkitgtk
|
@ -41,12 +41,6 @@ IMAGE_PREPROCESS_COMMAND += "image_patch;"
|
|||||||
image_patch () {
|
image_patch () {
|
||||||
# delete unused image
|
# delete unused image
|
||||||
rm -rf ${IMAGE_ROOTFS}/boot/*
|
rm -rf ${IMAGE_ROOTFS}/boot/*
|
||||||
# create /etc/fstab
|
|
||||||
cat << EOF > ${IMAGE_ROOTFS}/etc/fstab
|
|
||||||
/dev/mmcblk1p1 /boot auto defaults 0 0
|
|
||||||
/dev/mmcblk1p4 /home auto defaults 0 0
|
|
||||||
|
|
||||||
EOF
|
|
||||||
cat << EOF > ${IMAGE_ROOTFS}/etc/hostname
|
cat << EOF > ${IMAGE_ROOTFS}/etc/hostname
|
||||||
diya-recovery
|
diya-recovery
|
||||||
EOF
|
EOF
|
||||||
|
@ -5,12 +5,12 @@ auto lo
|
|||||||
iface lo inet loopback
|
iface lo inet loopback
|
||||||
|
|
||||||
# Wireless interfaces
|
# Wireless interfaces
|
||||||
auto wlan0
|
#auto wlan0
|
||||||
iface wlan0 inet dhcp
|
#iface wlan0 inet dhcp
|
||||||
# wireless_mode managed
|
# wireless_mode managed
|
||||||
# wireless_essid any
|
# wireless_essid any
|
||||||
# wpa-driver wext
|
# wpa-driver wext
|
||||||
wpa-conf /etc/network/wpa_supplicant.conf
|
#wpa-conf /etc/network/wpa_supplicant.conf
|
||||||
|
|
||||||
# Ethernet/RNDIS gadget (g_ether)
|
# Ethernet/RNDIS gadget (g_ether)
|
||||||
# ... or on host side, usbnet and random hwaddr
|
# ... or on host side, usbnet and random hwaddr
|
||||||
|
@ -3,5 +3,5 @@ SRC_URI += " file://itf_diya "
|
|||||||
|
|
||||||
do_install:append () {
|
do_install:append () {
|
||||||
rm ${D}/etc/network/interfaces
|
rm ${D}/etc/network/interfaces
|
||||||
install -m 0644 ${WORKDIR}/itf_diya ${D}/etc/network/interfaces
|
install -m 0644 ${UNPACKDIR}/itf_diya ${D}/etc/network/interfaces
|
||||||
}
|
}
|
@ -1,5 +1,6 @@
|
|||||||
DESCRIPTION = "Auto configuration deployment from media"
|
DESCRIPTION = "Auto configuration deployment from media"
|
||||||
DEPENDS = ""
|
DEPENDS = ""
|
||||||
|
RDEPENDS:${PN} = "bash"
|
||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||||
|
|
||||||
@ -7,9 +8,11 @@ SRC_URI += "file://confd \
|
|||||||
file://expandfs.sh \
|
file://expandfs.sh \
|
||||||
file://80_diya \
|
file://80_diya \
|
||||||
file://fs_resize \
|
file://fs_resize \
|
||||||
file://boot-to-recovery"
|
file://boot-to-recovery \
|
||||||
|
file://diya.pam \
|
||||||
|
file://xdg-terminal-exec"
|
||||||
|
|
||||||
|
S = "${UNPACKDIR}"
|
||||||
inherit update-rc.d useradd
|
inherit update-rc.d useradd
|
||||||
|
|
||||||
USERADD_PACKAGES = "${PN}"
|
USERADD_PACKAGES = "${PN}"
|
||||||
@ -23,15 +26,18 @@ INITSCRIPT_PARAMS = "start 30 S ."
|
|||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}/${sysconfdir}/init.d/
|
install -d ${D}/${sysconfdir}/init.d/
|
||||||
install -d ${DEPLOY_DIR_IMAGE}
|
install -d ${DEPLOY_DIR_IMAGE}
|
||||||
install -m 0755 ${WORKDIR}/confd ${D}/${sysconfdir}/init.d/confd
|
install -m 0755 ${UNPACKDIR}/confd ${D}/${sysconfdir}/init.d/confd
|
||||||
install -d ${D}/sbin/
|
install -d ${D}/sbin/
|
||||||
install -d ${D}/etc/default/volatiles
|
install -d ${D}/etc/default/volatiles
|
||||||
install -m 0644 ${WORKDIR}/80_diya ${D}${sysconfdir}/default/volatiles
|
install -m 0644 ${UNPACKDIR}/80_diya ${D}${sysconfdir}/default/volatiles
|
||||||
install -m 0755 ${WORKDIR}/expandfs.sh ${D}/sbin/expandfs.sh
|
install -m 0755 ${UNPACKDIR}/expandfs.sh ${D}/sbin/expandfs.sh
|
||||||
install -m 0755 ${WORKDIR}/boot-to-recovery ${D}/sbin/boot-to-recovery
|
install -m 0755 ${UNPACKDIR}/boot-to-recovery ${D}/sbin/boot-to-recovery
|
||||||
install -m 0755 ${WORKDIR}/fs_resize ${DEPLOY_DIR_IMAGE}/
|
install -m 0755 ${UNPACKDIR}/fs_resize ${DEPLOY_DIR_IMAGE}/
|
||||||
|
install -d ${D}/etc/pam.d
|
||||||
cat << EOF > ${DEPLOY_DIR_IMAGE}/config.txt
|
install -m 0644 ${UNPACKDIR}/diya.pam ${D}${sysconfdir}/pam.d/diya
|
||||||
|
install -d ${D}/usr/bin
|
||||||
|
install -m 0755 ${UNPACKDIR}/xdg-terminal-exec ${D}/usr/bin
|
||||||
|
cat << EOF > ${DEPLOY_DIR_IMAGE}/diya-config.txt
|
||||||
recovery=false
|
recovery=false
|
||||||
recovery_image=recovery-${MACHINE}.cpio.gz
|
recovery_image=recovery-${MACHINE}.cpio.gz
|
||||||
console=both
|
console=both
|
||||||
|
@ -6,16 +6,17 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
. /etc/profile
|
. /etc/profile
|
||||||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
if [ ! -e /boot/config.txt ]; then
|
if [ ! -e /boot/diya-config.txt ]; then
|
||||||
# prepare env for recovery boot
|
# prepare env for recovery boot
|
||||||
cat << EOF > /boot/config.txt
|
cat << EOF > /boot/diya-config.txt
|
||||||
recovery=true
|
recovery=true
|
||||||
recovery_image=recovery-${MACHINE}.cpio.gz
|
recovery_image=recovery-${MACHINE}.cpio.gz
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
sed -i 's/^.*recovery.*/recovery=true/g' /boot/config.txt || \
|
sed -i 's/^.*recovery.*/recovery=true/g' /boot/diya-config.txt || \
|
||||||
echo "recovery=true" >> /boot/config.txt
|
echo "recovery=true" >> /boot/diya-config.txt
|
||||||
fi
|
fi
|
||||||
echo "Rebooting to recovery mode"
|
echo "Rebooting to recovery mode"
|
||||||
reboot
|
reboot
|
@ -1,10 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|
||||||
DESC="Auto deployment configuration from media"
|
DESC="Auto deployment configuration from media"
|
||||||
|
|
||||||
|
. /etc/profile
|
||||||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
if [ -z "$DISK" ]; then
|
if [ -z "$DISK" ]; then
|
||||||
DISK="mmcblk1"
|
DISK="mmcblk0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@ -32,13 +34,10 @@ case "$1" in
|
|||||||
mkdir -p /home/diya
|
mkdir -p /home/diya
|
||||||
chown -R diya:diya /home/diya
|
chown -R diya:diya /home/diya
|
||||||
fi
|
fi
|
||||||
if [ -e "/boot/wpa_supplicant.conf" ];then
|
if ls /boot/*.nmconnection > /dev/null 2>&1 ;then
|
||||||
mv /boot/wpa_supplicant.conf /etc/network/
|
mv /boot/*.nmconnection /etc/NetworkManager/system-connections/
|
||||||
reboot
|
chmod 600 /etc/NetworkManager/system-connections/*.nmconnection
|
||||||
fi
|
fi
|
||||||
# display information
|
|
||||||
# disable wifi power save
|
|
||||||
# /usr/sbin/iw wlan0 set power_save off
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
N=/etc/init.d/$NAME
|
N=/etc/init.d/$NAME
|
||||||
|
5
recipes-diya/diya-overlay/files/diya.pam
Normal file
5
recipes-diya/diya-overlay/files/diya.pam
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#%PAM-1.0
|
||||||
|
|
||||||
|
auth include common-auth
|
||||||
|
account include common-account
|
||||||
|
session include common-session
|
@ -1,7 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
. /etc/profile
|
||||||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
if [ -z "$DISK" ]; then
|
if [ -z "$DISK" ]; then
|
||||||
DISK="mmcblk1"
|
DISK="mmcblk0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(/usr/bin/id -u)" -ne 0 ]; then
|
if [ "$(/usr/bin/id -u)" -ne 0 ]; then
|
||||||
|
2
recipes-diya/diya-overlay/files/xdg-terminal-exec
Normal file
2
recipes-diya/diya-overlay/files/xdg-terminal-exec
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
foot "$@"
|
@ -10,8 +10,8 @@ SRC_URI += "git://git.iohub.dev/dany/diya-session-manager.git;protocol=https;bra
|
|||||||
file://diya-sessiond"
|
file://diya-sessiond"
|
||||||
|
|
||||||
SRCREV = "${AUTOREV}"
|
SRCREV = "${AUTOREV}"
|
||||||
PV = "0.1.0+git${SRCPV}"
|
PV = "0.1.1+git${SRCPV}"
|
||||||
S = "${WORKDIR}/git"
|
S = "${UNPACKDIR}/git"
|
||||||
|
|
||||||
inherit meson pkgconfig
|
inherit meson pkgconfig
|
||||||
|
|
||||||
@ -27,10 +27,10 @@ do_install:append() {
|
|||||||
install -d ${D}/etc/dbus-1/system.d
|
install -d ${D}/etc/dbus-1/system.d
|
||||||
install -d ${D}/etc/init.d
|
install -d ${D}/etc/init.d
|
||||||
install -m 0755 ${WORKDIR}/build/diya-session-manager ${D}/usr/bin/
|
install -m 0755 ${WORKDIR}/build/diya-session-manager ${D}/usr/bin/
|
||||||
install -m 0755 ${WORKDIR}/diya-sessiond ${D}/etc/init.d/
|
install -m 0755 ${UNPACKDIR}/diya-sessiond ${D}/etc/init.d/
|
||||||
install -m 0755 ${WORKDIR}/diya-session-launch ${D}/usr/bin/
|
install -m 0755 ${UNPACKDIR}/diya-session-launch ${D}/usr/bin/
|
||||||
install -m 0644 ${WORKDIR}/daemon.conf ${D}/etc/diya/
|
install -m 0644 ${UNPACKDIR}/daemon.conf ${D}/etc/diya/
|
||||||
install -m 0644 ${WORKDIR}/dbus-diya.conf ${D}/etc/dbus-1/system.d/
|
install -m 0644 ${UNPACKDIR}/dbus-diya.conf ${D}/etc/dbus-1/system.d/
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES:${PN} = "/etc/diya \
|
FILES:${PN} = "/etc/diya \
|
||||||
|
@ -21,4 +21,7 @@ login_session_user = xdg
|
|||||||
# login session is successful
|
# login session is successful
|
||||||
# the logged in user will own this session
|
# the logged in user will own this session
|
||||||
|
|
||||||
user_session_command = diya-session-launch diyac -x diya-shell
|
user_session_command = diya-session-launch diyac -x diya-shell
|
||||||
|
|
||||||
|
# PAM service used by the daemon for authentication
|
||||||
|
pam_service = diya
|
@ -1,14 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|
||||||
DESC="Custom configuration"
|
DESC="Custom configuration"
|
||||||
. /etc/profile
|
. /etc/profile
|
||||||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Start $DESC: "
|
echo -n "Start $DESC: "
|
||||||
sed -i 's/^.*recovery.*/recovery=false/g' /boot/config.txt || \
|
sed -i 's/^.*recovery.*/recovery=false/g' /boot/diya-config.txt || \
|
||||||
echo "recovery=false" >> /boot/config.txt
|
echo "recovery=false" >> /boot/diya-config.txt
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
@ -1,16 +1,20 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
. /etc/profile
|
. /etc/profile
|
||||||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
|
if [ -z "$DISK" ]; then
|
||||||
|
DISK="mmcblk0"
|
||||||
|
fi
|
||||||
|
|
||||||
DEFAULT_ROOTFS_NAME="rootfs-$MACHINE.tar.bz2"
|
DEFAULT_ROOTFS_NAME="rootfs-$MACHINE.tar.bz2"
|
||||||
DEFAULT_KERNEL_NAME="Image-$MACHINE.bin"
|
DEFAULT_KERNEL_NAME="Image-$MACHINE.bin"
|
||||||
DEFAULT_INITRAMFS_NAME="recovery-$MACHINE.cpio.gz"
|
DEFAULT_INITRAMFS_NAME="recovery-$MACHINE.cpio.gz"
|
||||||
UPDATE_SRC_PATH="/home/diya/.update"
|
UPDATE_SRC_PATH="/home/diya/.update"
|
||||||
ROOTFS_DEV="/dev/mmcblk1p2"
|
ROOTFS_DEV="/dev/${DISK}p2"
|
||||||
SUPPORTED_COMMAND="rootfs kernel initramfs all"
|
SUPPORTED_COMMAND="rootfs kernel initramfs all"
|
||||||
TMP_MOUNT="/tmp/rootfs"
|
TMP_MOUNT="/tmp/rootfs"
|
||||||
|
|
||||||
|
|
||||||
rootfs()
|
rootfs()
|
||||||
{
|
{
|
||||||
filename=$1
|
filename=$1
|
||||||
@ -54,9 +58,9 @@ rootfs()
|
|||||||
echo "Patch /etc/fstab"
|
echo "Patch /etc/fstab"
|
||||||
cat << EOF >> $TMP_MOUNT/etc/fstab
|
cat << EOF >> $TMP_MOUNT/etc/fstab
|
||||||
|
|
||||||
/dev/mmcblk1p1 /boot vfat defaults 0 0
|
/dev/${DISK}p1 /boot vfat defaults 0 0
|
||||||
/dev/mmcblk1p3 /var/etc ext4 defaults 0 0
|
/dev/${DISK}p3 /var/etc ext4 defaults 0 0
|
||||||
/dev/mmcblk1p4 /home ext4 defaults 0 0
|
/dev/${DISK}p4 /home ext4 defaults 0 0
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
sync
|
sync
|
||||||
|
@ -15,7 +15,7 @@ SRC_URI = "file://init \
|
|||||||
file://diya-update \
|
file://diya-update \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}"
|
S = "${UNPACKDIR}"
|
||||||
|
|
||||||
INITSCRIPT_NAME = "confd"
|
INITSCRIPT_NAME = "confd"
|
||||||
INITSCRIPT_PARAMS = "start 30 S ."
|
INITSCRIPT_PARAMS = "start 30 S ."
|
||||||
@ -24,12 +24,12 @@ do_install() {
|
|||||||
install -d ${D}/etc/init.d
|
install -d ${D}/etc/init.d
|
||||||
install -d ${D}/sbin
|
install -d ${D}/sbin
|
||||||
# base
|
# base
|
||||||
install -m 0755 ${WORKDIR}/init ${D}/init
|
install -m 0755 ${UNPACKDIR}/init ${D}/init
|
||||||
install -m 0755 ${WORKDIR}/confd ${D}/etc/init.d/confd
|
install -m 0755 ${UNPACKDIR}/confd ${D}/etc/init.d/confd
|
||||||
cat << EOF >> ${D}/etc/profile
|
cat << EOF >> ${D}/etc/profile
|
||||||
export MACHINE=${MACHINE}
|
export MACHINE=${MACHINE}
|
||||||
EOF
|
EOF
|
||||||
install -m 0755 ${WORKDIR}/diya-update ${D}/sbin/
|
install -m 0755 ${UNPACKDIR}/diya-update ${D}/sbin/
|
||||||
|
|
||||||
# create symlink
|
# create symlink
|
||||||
ln -sf /sbin/diya-update ${D}/sbin/diya-update-rootfs
|
ln -sf /sbin/diya-update ${D}/sbin/diya-update-rootfs
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
PV = "1.1.0"
|
PV = "1.1.1"
|
||||||
SRCREV = "v1.1.0"
|
SRCREV = "v1.1.1"
|
||||||
|
|
||||||
INSANE_SKIP:${PN}-dev += "dev-elf"
|
INSANE_SKIP:${PN}-dev += "dev-elf"
|
1
recipes-sato/webkit/webkitgtk_%.bbapend
Normal file
1
recipes-sato/webkit/webkitgtk_%.bbapend
Normal file
@ -0,0 +1 @@
|
|||||||
|
PACKAGECONFIG:remove = "x11 systemd"
|
@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0-only;md5=c79ff39f19dfec
|
|||||||
|
|
||||||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||||
|
|
||||||
S="${WORKDIR}"
|
S = "${UNPACKDIR}"
|
||||||
|
|
||||||
DEPENDS = "gtk+3 pango cairo harfbuzz gdk-pixbuf intltool-native"
|
DEPENDS = "gtk+3 pango cairo harfbuzz gdk-pixbuf intltool-native"
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ SRCREV = "${AUTOREV}"
|
|||||||
SRC_URI = "git://github.com/LBCrion/sfwbar.git;protocol=https;branch=main"
|
SRC_URI = "git://github.com/LBCrion/sfwbar.git;protocol=https;branch=main"
|
||||||
SRC_URI += " file://sfwbar.config "
|
SRC_URI += " file://sfwbar.config "
|
||||||
|
|
||||||
S="${WORKDIR}/git"
|
S="${UNPACKDIR}/git"
|
||||||
|
|
||||||
inherit meson pkgconfig
|
inherit meson pkgconfig
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ EXTRA_OEMESON += "--buildtype release"
|
|||||||
do_install:append () {
|
do_install:append () {
|
||||||
install -d ${D}/${sysconfdir}/xdg/
|
install -d ${D}/${sysconfdir}/xdg/
|
||||||
install -d ${D}/${sysconfdir}/xdg/sfwbar/
|
install -d ${D}/${sysconfdir}/xdg/sfwbar/
|
||||||
install -m 0755 ${WORKDIR}/sfwbar.config ${D}/${sysconfdir}/xdg/sfwbar/
|
install -m 0755 ${UNPACKDIR}/sfwbar.config ${D}/${sysconfdir}/xdg/sfwbar/
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES:${PN} += "/usr/share/icons/*"
|
FILES:${PN} += "/usr/share/icons/*"
|
||||||
|
@ -12,7 +12,7 @@ SRCREV = "${AUTOREV}"
|
|||||||
SRC_URI = "git://github.com/philj56/tofi.git;protocol=https;branch=master"
|
SRC_URI = "git://github.com/philj56/tofi.git;protocol=https;branch=master"
|
||||||
SRC_URI += " file://config file://drun "
|
SRC_URI += " file://config file://drun "
|
||||||
|
|
||||||
S="${WORKDIR}/git"
|
S="${UNPACKDIR}/git"
|
||||||
|
|
||||||
inherit meson pkgconfig
|
inherit meson pkgconfig
|
||||||
|
|
||||||
@ -20,8 +20,8 @@ EXTRA_OEMESON += "--buildtype release"
|
|||||||
|
|
||||||
do_install:append () {
|
do_install:append () {
|
||||||
# replace the default config
|
# replace the default config
|
||||||
install -m 0755 ${WORKDIR}/drun ${D}/usr/bin/
|
install -m 0755 ${UNPACKDIR}/drun ${D}/usr/bin/
|
||||||
install -m 0755 ${WORKDIR}/config ${D}/${sysconfdir}/xdg/tofi/
|
install -m 0755 ${UNPACKDIR}/config ${D}/${sysconfdir}/xdg/tofi/
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES:${PN} += "/usr/share/*"
|
FILES:${PN} += "/usr/share/*"
|
||||||
|
@ -10,7 +10,7 @@ SRCREV = "${AUTOREV}"
|
|||||||
|
|
||||||
SRC_URI = "git://git.iohub.dev/dany/wlopm.git;protocol=https;branch=master"
|
SRC_URI = "git://git.iohub.dev/dany/wlopm.git;protocol=https;branch=master"
|
||||||
|
|
||||||
S="${WORKDIR}/git"
|
S="${UNPACKDIR}/git"
|
||||||
|
|
||||||
do_compile () {
|
do_compile () {
|
||||||
oe_runmake
|
oe_runmake
|
||||||
|
@ -10,7 +10,7 @@ SRCREV = "${AUTOREV}"
|
|||||||
|
|
||||||
SRC_URI = "git://github.com/atx/wtype.git;protocol=https;branch=master"
|
SRC_URI = "git://github.com/atx/wtype.git;protocol=https;branch=master"
|
||||||
|
|
||||||
S="${WORKDIR}/git"
|
S="${UNPACKDIR}/git"
|
||||||
|
|
||||||
inherit meson pkgconfig
|
inherit meson pkgconfig
|
||||||
|
|
||||||
|
@ -13,13 +13,13 @@ do_install:append () {
|
|||||||
install -d ${D}/${sysconfdir}/xdg
|
install -d ${D}/${sysconfdir}/xdg
|
||||||
install -d ${D}/${sysconfdir}/init.d
|
install -d ${D}/${sysconfdir}/init.d
|
||||||
install -d ${D}/${sysconfdir}/xdg/labwc
|
install -d ${D}/${sysconfdir}/xdg/labwc
|
||||||
install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/labwc
|
install -m 0755 ${UNPACKDIR}/init ${D}/${sysconfdir}/init.d/labwc
|
||||||
|
|
||||||
install -m 0755 ${WORKDIR}/wpp.jpg ${D}/${sysconfdir}/xdg/labwc/
|
install -m 0755 ${UNPACKDIR}/wpp.jpg ${D}/${sysconfdir}/xdg/labwc/
|
||||||
install -m 0755 ${WORKDIR}/autostart ${D}/${sysconfdir}/xdg/labwc/
|
install -m 0755 ${UNPACKDIR}/autostart ${D}/${sysconfdir}/xdg/labwc/
|
||||||
install -m 0755 ${WORKDIR}/environment ${D}/${sysconfdir}/xdg/labwc/
|
install -m 0755 ${UNPACKDIR}/environment ${D}/${sysconfdir}/xdg/labwc/
|
||||||
install -m 0755 ${WORKDIR}/menu.xml ${D}/${sysconfdir}/xdg/labwc/
|
install -m 0755 ${UNPACKDIR}/menu.xml ${D}/${sysconfdir}/xdg/labwc/
|
||||||
install -m 0755 ${WORKDIR}/rc.xml ${D}/${sysconfdir}/xdg/labwc/
|
install -m 0755 ${UNPACKDIR}/rc.xml ${D}/${sysconfdir}/xdg/labwc/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
# short-description: Create Raspberry Pi SD card image
|
|
||||||
# long-description: Creates a partitioned SD card image for use with
|
|
||||||
|
|
||||||
part u-boot --source rawcopy --sourceparams="file=${SPL_BINARY}" --ondisk mmcblk1 --no-table --align 8
|
|
||||||
part /boot --source bootimg-partition --ondisk mmcblk1 --fstype=vfat --label boot --active --align 4096 --size 32
|
|
||||||
# read only roofs
|
|
||||||
part / --source rootfs --ondisk mmcblk1 --fstype=ext4 --label root --align 4096 --size 150 --exclude-path home/ --exclude-path var/etc/ --exclude-path boot/
|
|
||||||
# modifiable configurations stored in /var/etc
|
|
||||||
part /var/etc --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var/etc --ondisk mmcblk1 --fstype=ext4 --label diya --align 1024 --size 32
|
|
||||||
# home partition
|
|
||||||
part /home --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/home --ondisk mmcblk1 --fstype=ext4 --label home --align 1024 --size 16
|
|
||||||
# part /home --ondisk mmcblk1 --fstype=vfat --label music --active --align 1024 --size 16
|
|
Reference in New Issue
Block a user