Skip to content

Commit

Permalink
hostapd: Support running "devtool modify hostapd"
Browse files Browse the repository at this point in the history
For "devtool modify" to work correctly, ${B} needs to match ${S}.

Signed-off-by: Peter Kjellerstedt <[email protected]>
Signed-off-by: Armin Kuster <[email protected]>
  • Loading branch information
Saur2000 authored and akuster committed Aug 14, 2024
1 parent bcef006 commit 8c47696
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions meta-oe/recipes-connectivity/hostapd/hostapd_2.10.bb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ SRC_URI = " \

SRC_URI[sha256sum] = "206e7c799b678572c2e3d12030238784bc4a9f82323b0156b4c9466f1498915d"

S = "${WORKDIR}/hostapd-${PV}"
B = "${WORKDIR}/hostapd-${PV}/hostapd"

inherit update-rc.d systemd pkgconfig features_check

CONFLICT_DISTRO_FEATURES = "openssl-no-weak-ciphers"
Expand All @@ -29,20 +26,20 @@ SYSTEMD_SERVICE:${PN} = "hostapd.service"
SYSTEMD_AUTO_ENABLE:${PN} = "disable"

do_configure:append() {
install -m 0644 ${WORKDIR}/defconfig ${B}/.config
install -m 0644 ${WORKDIR}/defconfig ${B}/hostapd/.config
}

do_compile() {
export CFLAGS="-MMD -O2 -Wall -g"
export EXTRA_CFLAGS="${CFLAGS}"
make V=1
make -C hostapd V=1
}

do_install() {
install -d ${D}${sbindir} ${D}${sysconfdir}/init.d ${D}${systemd_unitdir}/system/
install -m 0644 ${B}/hostapd.conf ${D}${sysconfdir}
install -m 0755 ${B}/hostapd ${D}${sbindir}
install -m 0755 ${B}/hostapd_cli ${D}${sbindir}
install -m 0644 ${B}/hostapd/hostapd.conf ${D}${sysconfdir}
install -m 0755 ${B}/hostapd/hostapd ${D}${sbindir}
install -m 0755 ${B}/hostapd/hostapd_cli ${D}${sbindir}
install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hostapd
install -m 0644 ${WORKDIR}/hostapd.service ${D}${systemd_unitdir}/system/
sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/hostapd.service
Expand Down

0 comments on commit 8c47696

Please sign in to comment.