build: fix BUILD_ARGS
authorÁlvaro Fernández Rojas <[email protected]>
Mon, 1 Dec 2025 08:02:50 +0000 (09:02 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 1 Dec 2025 08:02:50 +0000 (09:02 +0100)
Commit ef8de928da7f forced DHCPV4_SUPPORT and UBUS cmake options, but should
have fixed BUILD_ARGS instead (-WITH_UBUS=ON -> -DUBUS=ON).

Fixes: ef8de928da7f ("build: enable DHCPV4_SUPPORT and UBUS")
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
scripts/devel-build.sh

index e937185d3093b3d2a7c9fdc48c0f75e07c48fa16..46c565bbe0403f56a463f3b9911fb4b0cdadec00 100755 (executable)
@@ -11,7 +11,7 @@ if [ ! -e "CMakeLists.txt" ] || [ ! -e "src/odhcpd.c" ]; then
 fi
 
 if [ $# -eq 0 ]; then
-       BUILD_ARGS="-DDHCPV4_SUPPORT=ON -WITH_UBUS=ON"
+       BUILD_ARGS="-DDHCPV4_SUPPORT=ON -DUBUS=ON"
 else
        BUILD_ARGS="$@"
 fi
@@ -94,8 +94,6 @@ cd "${ODHCPDDIR}"
 cmake                                                  \
        -S .                                            \
        -B "${BUILDDIR}"                                \
-       -DDHCPV4_SUPPORT=ON                             \
-       -DUBUS=ON                                       \
        -DCMAKE_PREFIX_PATH="${BUILDDIR}"               \
        ${BUILD_ARGS}
 make -C "${BUILDDIR}"