Compare commits

...

5 Commits

7 changed files with 47 additions and 11 deletions

View File

@@ -21,4 +21,4 @@ EOF
cat << EOF >> "${D}${sysconfdir}/profile"
export MACHINE=${MACHINE}
EOF
}
}

View File

@@ -33,7 +33,8 @@ IMAGE_INSTALL:append = "kernel-modules \
i2c-tools \
bash \
nano \
wpa-supplicant \
iwd \
networkmanager networkmanager-nmcli networkmanager-bluetooth dhcpcd \
evtest \
rsync \
coreutils \

View File

@@ -16,6 +16,7 @@ IMAGE_INSTALL:append = "pango \
pixman \
cairo \
glib-2.0 \
glibmm \
freetype \
fontconfig \
librsvg librsvg-gtk \
@@ -30,6 +31,7 @@ IMAGE_INSTALL:append = "pango \
gdbserver gdb \
wlr-randr \
diya-session-manager \
lua \
"
PACKAGE_EXCLUDE = " gtk+ gtk+3 adwaita-icon-theme "
IMAGE_INSTALL:remove = " gtk+ gtk+3 adwaita-icon-theme "

View File

@@ -5,12 +5,12 @@ auto lo
iface lo inet loopback
# Wireless interfaces
auto wlan0
iface wlan0 inet dhcp
#auto wlan0
#iface wlan0 inet dhcp
# wireless_mode managed
# wireless_essid any
# wpa-driver wext
wpa-conf /etc/network/wpa_supplicant.conf
#wpa-conf /etc/network/wpa_supplicant.conf
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr

View File

@@ -0,0 +1,25 @@
From: Dany LE <xsang.le@gmail.com>
Date: Tue, 25 Aug 2025 10:39:56 +0200
Subject: Enable shared lib build
Add command to generate shared lib in Makefile
Upstream-Status: Pending
Signed-off-by: Dany LE <xsang.le@gmail.com>
---
diff --git a/src/Makefile b/src/Makefile
index b771196..6ff850c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -59,7 +59,7 @@ a: $(ALL_A)
$(LUA_A): $(BASE_O)
$(AR) $@ $(BASE_O)
$(RANLIB) $@
-
+ $(CC) -shared -ldl -Wl,-soname,liblua.so.$R -o liblua.so.$R $? -lm $(MYLDFLAGS)
$(LUA_T): $(LUA_O) $(LUA_A)
$(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)

View File

@@ -0,0 +1,11 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += " file://0001-enable-shared-library.patch "
EXTRA_OEMAKE += " R='${PV}'"
do_install:append () {
# Your code here
install -d ${D}${libdir}
install -m 0755 ${S}/src/liblua.so.${PV} ${D}${libdir}/
ln -sf liblua.so.${PV} ${D}${libdir}/liblua.so
}

View File

@@ -34,13 +34,10 @@ case "$1" in
mkdir -p /home/diya
chown -R diya:diya /home/diya
fi
if [ -e "/boot/wpa_supplicant.conf" ];then
mv /boot/wpa_supplicant.conf /etc/network/
reboot
if ls /boot/*.nmconnection > /dev/null 2>&1 ;then
mv /boot/*.nmconnection /etc/NetworkManager/system-connections/
chmod 600 /etc/NetworkManager/system-connections/*.nmconnection
fi
# display information
# disable wifi power save
# /usr/sbin/iw wlan0 set power_save off
;;
*)
N=/etc/init.d/$NAME