make[4]: "/build/armv7/usr/src/sys/conf/kmod.mk" line 234: Malformed conditional (!defined(DEBUG_FLAGS) || ${MK_SPLIT_KERNEL_DEBUG} =="no")

Mario Marietto <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <CA+1FSihaB+Lfdb=B0vONyMuB99Z945FsXNLi6YBTH3Qwhu9MBw@mail.gmail.com>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.