Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Sep 2023 15:37:12 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        freebsd-arm@freebsd.org
Subject:   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%2B1FSihaB%2BLfdb=B0vONyMuB99Z945FsXNLi6YBTH3Qwhu9MBw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--000000000000a85b8f06058e2159
Content-Type: text/plain; charset="UTF-8"

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.

--000000000000a85b8f06058e2159
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello to everyone,</div><div><div class=3D"gmail-_3xX=
726aBn29LDbsDtzr_6E gmail-_1Ap4F5maDtT1E1YuCiaO0r gmail-D3IL3FD0RFy_mkKLPwL=
4" style=3D"max-width:800px"><div class=3D"gmail-_292iotee39Lmt0MkQZ2hPV gm=
ail-RichTextJSON-root"><p class=3D"gmail-_1qeIAgB0cPwnLhDF9XSiJM">I&#39;m t=
rying to cross-compile the kernel on a different host (with the goal to app=
ly a patch,but this a different story) :</p><p class=3D"gmail-_1qeIAgB0cPwn=
LhDF9XSiJM"><br></p><p class=3D"gmail-_1qeIAgB0cPwnLhDF9XSiJM"></p><p class=
=3D"gmail-_1qeIAgB0cPwnLhDF9XSiJM"></p><pre class=3D"gmail-_3GnarIQX9tD_qsg=
XkfSDz1"><code class=3D"gmail-_34q3PgLsx9zIU5BiSOjFoM">FreeBSD 13.2-RELEASE=
-p3 GENERIC amd64<br>
</code></pre><p class=3D"gmail-_1qeIAgB0cPwnLhDF9XSiJM"></p><p class=3D"gma=
il-_1qeIAgB0cPwnLhDF9XSiJM">to an armv7 target :</p><p class=3D"gmail-_1qeI=
AgB0cPwnLhDF9XSiJM"></p><p class=3D"gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p>=
<pre class=3D"gmail-_3GnarIQX9tD_qsgXkfSDz1"><code class=3D"gmail-_34q3PgLs=
x9zIU5BiSOjFoM">bash

export BASEDIR=3D/build/armv7

export MAKEOBJDIRPREFIX=3D/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=3D"https://bugs.freebsd.org/bugzilla/atta=
chment.cgi?id=3D242127&amp;action=3Ddiff">https://bugs.freebsd.org/bugzilla=
/attachment.cgi?id=3D242127&amp;action=3Ddiff</a>

patch -u &lt; if_vtnet.c.patch

cd usr/src

make -j4 -DNO_KERNELDEPEND -DNO_CLEAN buildkernel TARGET_ARCH=3Darmv7 KERNC=
ONF=3DGENERIC


unfortunately I get these errors :


make[4]: &quot;/build/armv7/usr/src/sys/conf/<a href=3D"http://kmod.mk">kmo=
d.mk</a>&quot; line 234: Malformed conditional (!defined(DEBUG_FLAGS) || ${=
MK_SPLIT_KERNEL_DEBUG} =3D=3D&quot;no&quot;)

make[4]: &quot;/build/armv7/usr/src/sys/conf/<a href=3D"http://kmod.mk">kmo=
d.mk</a>&quot; line 334: Malformed conditional (defined(DEBUG_FLAGS) &amp;&=
amp; ${MK_SPLIT_KERNEL_DEBUG} !=3D &quot;no&quot;)


&#39;cause these errors I can&#39;t issue the next command :


# make -DNO_KERNELDEPEND -DNO_CLEAN installkernel TARGET_ARCH=3Darmv7 KERNC=
ONF=3DGENERIC DESTDIR=3D$BASEDIR/build
</code></pre><p class=3D"gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class=3D=
"gmail-_1qeIAgB0cPwnLhDF9XSiJM">Any idea about how to fix it ? thanks. <br>=
</p></div></div></div><div><span class=3D"gmail_signature_prefix">-- </span=
><br><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_sig=
nature">Mario.<br></div></div></div>

--000000000000a85b8f06058e2159--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSihaB%2BLfdb=B0vONyMuB99Z945FsXNLi6YBTH3Qwhu9MBw>