Date: Sun, 17 Sep 2023 15:59:43 +0200
From: Mario Marietto <marietto2008@gmail.com>
To: freebsd-hackers <freebsd-hackers@freebsd.org>, hackers@freebsd.org
Subject: Fwd: make[4]: "/build/armv7/usr/src/sys/conf/kmod.mk" line 234: Malformed conditional (!defined(DEBUG_FLAGS) || ${MK_SPLIT_KERNEL_DEBUG} =="no")
Message-ID: <CA%2B1FSiiF4m1QSBLxPxTkZfGVT6uNLyojK_O68kzT5ZXwKfwJtQ@mail.gmail.com>
In-Reply-To: <CA%2B1FSihaB%2BLfdb=B0vONyMuB99Z945FsXNLi6YBTH3Qwhu9MBw@mail.gmail.com>
References: <CA%2B1FSihaB%2BLfdb=B0vONyMuB99Z945FsXNLi6YBTH3Qwhu9MBw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hello to everyone, I'm trying to cross-compile the kernel on a different host (with the goal to apply a patch,but this a different story) : FreeBSD 13.2-RELEASE-p3 GENERIC amd64 to an armv7 target : bash export BASEDIR=/build/armv7 export MAKEOBJDIRPREFIX=/build/armv7/obj mkdir -p /build/armv7/usr cd /usr cp -r src /build/armv7/src cd /build/armv7 fetch -o if_vtnet.c.patch https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242127&action=diff patch -u < if_vtnet.c.patch cd usr/src make -j4 -DNO_KERNELDEPEND -DNO_CLEAN buildkernel TARGET_ARCH=armv7 KERNCONF=GENERIC unfortunately I get these errors : make[4]: "/build/armv7/usr/src/sys/conf/kmod.mk" line 234: Malformed conditional (!defined(DEBUG_FLAGS) || ${MK_SPLIT_KERNEL_DEBUG} =="no") make[4]: "/build/armv7/usr/src/sys/conf/kmod.mk" line 334: Malformed conditional (defined(DEBUG_FLAGS) && ${MK_SPLIT_KERNEL_DEBUG} != "no") 'cause these errors I can't issue the next command : # make -DNO_KERNELDEPEND -DNO_CLEAN installkernel TARGET_ARCH=armv7 KERNCONF=GENERIC DESTDIR=$BASEDIR/build Any idea about how to fix it ? thanks. -- Mario. -- Mario. [-- Attachment #2 --] <div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello to everyone,</div><div><div style="max-width:800px"><div><p>I'm trying to cross-compile the kernel on a different host (with the goal to apply a patch,but this a different story) :</p><p><br></p><p></p><p></p><pre><code>FreeBSD 13.2-RELEASE-p3 GENERIC amd64<br> </code></pre><p></p><p>to an armv7 target :</p><p></p><p><br></p><pre><code>bash export BASEDIR=/build/armv7 export MAKEOBJDIRPREFIX=/build/armv7/obj mkdir -p /build/armv7/usr cd /usr cp -r src /build/armv7/src cd /build/armv7 fetch -o if_vtnet.c.patch <a href="https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242127&action=diff" target="_blank">https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242127&action=diff</a> patch -u < if_vtnet.c.patch cd usr/src make -j4 -DNO_KERNELDEPEND -DNO_CLEAN buildkernel TARGET_ARCH=armv7 KERNCONF=GENERIC unfortunately I get these errors : make[4]: "/build/armv7/usr/src/sys/conf/<a href="http://kmod.mk" target="_blank">kmod.mk</a>" line 234: Malformed conditional (!defined(DEBUG_FLAGS) || ${MK_SPLIT_KERNEL_DEBUG} =="no") make[4]: "/build/armv7/usr/src/sys/conf/<a href="http://kmod.mk" target="_blank">kmod.mk</a>" line 334: Malformed conditional (defined(DEBUG_FLAGS) && ${MK_SPLIT_KERNEL_DEBUG} != "no") 'cause these errors I can't issue the next command : # make -DNO_KERNELDEPEND -DNO_CLEAN installkernel TARGET_ARCH=armv7 KERNCONF=GENERIC DESTDIR=$BASEDIR/build </code></pre><p><br></p><p>Any idea about how to fix it ? thanks. <br></p><p></p></div></div></div><div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Mario.<br></div></div></div> </div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Mario.<br></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSiiF4m1QSBLxPxTkZfGVT6uNLyojK_O68kzT5ZXwKfwJtQ>
