[gnome-build-meta/valentindavid/pinebook-pro: 11/30] Add support for wpa-supplicant
- From: Valentin David <valentindavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/valentindavid/pinebook-pro: 11/30] Add support for wpa-supplicant
- Date: Fri, 1 May 2020 14:53:32 +0000 (UTC)
commit 40d5aa7978ea94d7b5ddf316d379e508910de3e0
Author: Valentin David <valentin david codethink co uk>
Date: Tue Apr 14 11:29:42 2020 +0000
Add support for wpa-supplicant
This should be moved to Freedesktop SDK
elements/boards/pinebook-pro/deps.bst | 2 ++
elements/boards/pinebook-pro/linux.bst | 7 +++++
elements/vm/deps.bst | 1 +
elements/vm/wpa-supplicant.bst | 55 ++++++++++++++++++++++++++++++++++
4 files changed, 65 insertions(+)
---
diff --git a/elements/boards/pinebook-pro/deps.bst b/elements/boards/pinebook-pro/deps.bst
index 595d0667..b6750759 100644
--- a/elements/boards/pinebook-pro/deps.bst
+++ b/elements/boards/pinebook-pro/deps.bst
@@ -39,3 +39,5 @@ runtime-depends:
- vm/linux-firmware.bst
- boards/pinebook-pro/wireless-regdb-bin.bst
- boards/pinebook-pro/firmware.bst
+
+- vm/wpa-supplicant.bst
diff --git a/elements/boards/pinebook-pro/linux.bst b/elements/boards/pinebook-pro/linux.bst
index eb7ca3ef..2bab8014 100644
--- a/elements/boards/pinebook-pro/linux.bst
+++ b/elements/boards/pinebook-pro/linux.bst
@@ -267,6 +267,13 @@ config:
scripts/config -m HID_ZEROPLUS
scripts/config -m HID_ZYDACRON
+ scripts/config -e WIRELESS
+ scripts/config -m CFG80211
+ scripts/config -e CFG80211_WEXT
+ scripts/config -e MAC80211
+ scripts/config -e NETDEVICES
+ scripts/config -e WLAN
+
build-commands:
- |
make
diff --git a/elements/vm/deps.bst b/elements/vm/deps.bst
index 68408daf..16266489 100644
--- a/elements/vm/deps.bst
+++ b/elements/vm/deps.bst
@@ -17,6 +17,7 @@ runtime-depends:
- vm/spice-vdagent.bst
- vm/linux-firmware.bst
- vm/resize-root.bst
+- vm/wpa-supplicant.bst
- freedesktop-sdk.bst:vm/config/pulseaudio.bst
- freedesktop-sdk.bst:vm/config/sudo.bst
diff --git a/elements/vm/wpa-supplicant.bst b/elements/vm/wpa-supplicant.bst
new file mode 100644
index 00000000..b8f12d27
--- /dev/null
+++ b/elements/vm/wpa-supplicant.bst
@@ -0,0 +1,55 @@
+kind: manual
+
+sources:
+- kind: tar
+ url: https://w1.fi/releases/wpa_supplicant-2.9.tar.gz
+
+depends:
+- freedesktop-sdk.bst:components/dbus.bst
+- core-deps/libnl.bst
+
+build-depends:
+- freedesktop-sdk.bst:components/pkg-config.bst
+- freedesktop-sdk.bst:components/systemd.bst
+
+variables:
+ config: |
+ # Add configuration here
+ make-args: >-
+ BINDIR="%{bindir}"
+ LIBDIR="%{libdir}"
+ DESTDIR="%{install-root}"
+
+config:
+ configure-commands:
+ - cp wpa_supplicant/defconfig wpa_supplicant/.config
+
+ - |
+ cat <<\EOF >>wpa_supplicant/.config
+ %{config}
+ EOF
+
+ build-commands:
+ - |
+ cd wpa_supplicant
+ make %{make-args}
+
+ install-commands:
+ - |
+ cd wpa_supplicant
+ make -j1 %{make-args} install
+
+ - |
+ cd wpa_supplicant
+ systemservices="$(pkg-config --variable system_bus_services_dir dbus-1)"
+ install -Dm644 -t "%{install-root}${systemservices}" dbus/fi.w1.wpa_supplicant1.service
+
+ - |
+ cd wpa_supplicant
+ systemdir="$(pkg-config --variable datadir dbus-1)/dbus-1/system.d"
+ install -Dm644 dbus/dbus-wpa_supplicant.conf "%{install-root}${systemdir}/wpa_supplicant.conf"
+
+ - |
+ cd wpa_supplicant
+ systemdsystemunitdir="$(pkg-config --variable systemdsystemunitdir systemd)"
+ install -Dm644 -t "%{install-root}${systemdsystemunitdir}" systemd/*.service
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]