From 281a7fcd5924e749a96967393828421caea68e93 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Fri, 22 Dec 2023 18:59:19 +0800
Subject: [PATCH] Add meta-igkboard for igkboard-imx8mp in yocto

---
 yocto/meta-igkboard/recipes-misc/wpa-conf/wpa-conf_1.0.bb |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/yocto/meta-igkboard/recipes-misc/wpa-conf/wpa-conf_1.0.bb b/yocto/meta-igkboard/recipes-misc/wpa-conf/wpa-conf_1.0.bb
index d2c288a..0833653 100644
--- a/yocto/meta-igkboard/recipes-misc/wpa-conf/wpa-conf_1.0.bb
+++ b/yocto/meta-igkboard/recipes-misc/wpa-conf/wpa-conf_1.0.bb
@@ -1,34 +1,31 @@
-DESCRIPTION = "Copy user wpa_supplicant.conf"
+DESCRIPTION = "Default eth0 and wlan0 network service"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
 
 inherit systemd
 
 SYSTEMD_AUTO_ENABLE = "enable"
-SYSTEMD_SERVICE:${PN} = "wpa-conf.timer"
+SYSTEMD_SERVICE:${PN} = "wpa-conf.service"
 
 WLAN_DEV ?= "wlan0"
 
+SRC_URI += " file://10-eth0.network "
 SRC_URI += " file://20-wlan0.network "
 SRC_URI += " file://wpa-conf.service "
-SRC_URI += " file://wpa-conf.timer "
-SRC_URI += " file://wpa_supplicant@.service "
 
+FILES:${PN} += "${sysconfdir}/systemd/network/10-eth0.network"
 FILES:${PN} += "${sysconfdir}/systemd/network/20-wlan0.network"
 FILES:${PN} += "${systemd_unitdir}/system/wpa-conf.service"
-FILES:${PN} += "${systemd_unitdir}/system/wpa-conf.timer"
-FILES:${PN} += "${systemd_unitdir}/system/wpa_supplicant@.service"
 
 do_install() { 
     install -d ${D}/${systemd_unitdir}/system 
     install -d ${D}${sysconfdir}/systemd/network
+
+    install -m 0644 ${WORKDIR}/10-eth0.network ${D}${sysconfdir}/systemd/network
 
     install -m 0644 ${WORKDIR}/20-wlan0.network ${D}${sysconfdir}/systemd/network
     sed -i "s|wlan0|${WLAN_DEV}|g" ${D}${sysconfdir}/systemd/network/20-wlan0.network
 
     install -m 0644 ${WORKDIR}/wpa-conf.service ${D}/${systemd_unitdir}/system
     sed -i "s|wlan0|${WLAN_DEV}|g" ${D}/${systemd_unitdir}/system/wpa-conf.service
-
-    install -m 0644 ${WORKDIR}/wpa-conf.timer ${D}/${systemd_unitdir}/system
-    install -m 0644 ${WORKDIR}/wpa_supplicant@.service ${D}/${systemd_unitdir}/system
 }

--
Gitblit v1.9.1