From nobody Sun Sep 17 13:37:12 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RpTWg32VSz4slvN for ; Sun, 17 Sep 2023 13:37:51 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RpTWf4x45z3RSP for ; Sun, 17 Sep 2023 13:37:50 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=fSenkbcJ; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::62a as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9a6190af24aso483368366b.0 for ; Sun, 17 Sep 2023 06:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694957869; x=1695562669; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=oXacPO7FFM8/oacaYgv8DhHmMD5gyiRuwNDmuRxLx4Y=; b=fSenkbcJN53SpEwv2suK/eSUpgBncK5ebTDt+MGuHAC16Eu4uvJaJR0B5KROHf+W+A noyJdx2l67wKEfLT4Y/u7Q/02MOGz5hAkU9vU/BVlf9d99N+XosUgQviBtFYRNbXFvfn H9NEwWJ3hDHRCtDq/hjQ1Jc4FMTrHqClVjX94N9TEfOBjFWmQpWA4BxYUtMPnH4lbbiN QFIZhBxvSTA7VvonDzuwDQowsM5YwUR6LwLvfLBTVs1kSIjazMCwjaANEGPJXq361kPN 5/wlsmaXH+3W86KXJpvgLqkvlsoP/MLfgjNSTLE9z2s5b1PSGf0LenRZPZ/5Mb+iqatk P30w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694957869; x=1695562669; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oXacPO7FFM8/oacaYgv8DhHmMD5gyiRuwNDmuRxLx4Y=; b=QUPusAFFOKo1U2vgSPsGTsojzNe84xnCf5xB9jUTsSmIx1a+XsPno36+f8R/gK3dGd BacQ/q/cn9TklOzHa8jqGh4Qo+x37Ke/k+nR6RG57Nj3Z6Nhqaj+nQxj4siHP9laWSEq DXmTrtFIhsLXFRIHlJS+BXuBhlTkx12d+/B0KwjH+ZDqR4/dQtg/nLBgdJFvj6quErLS uFpUmQWj7yTTlt/GQrxgLliHvSAxXUwCfQgSHVsGNsuxS1Hnb/Decm6MZHsWtOyDubOg rCA+ECoX1KR0zqgF0q4wYst871aPRSkxNbvbgmIvEFXRGgmA8bzuX+fddKm0rXRDNhsY rBIw== X-Gm-Message-State: AOJu0YwoJVlhJQ6z5z4HvbkQqGm/o9ln0sDhol9uOVjdkkW4Mj4J8eLu /FWCPucq1BSLZQwIonFkISXh9Nou8+Xb08NxUzIM953u+Vh+PQ== X-Google-Smtp-Source: AGHT+IE3dhEAUTs10ZGTp+ugZDPkpg0p9Qvrini20BZQFja2gXRTCFJD904r8nTaZEv1EYY2t+ZrnX4cZPeTjhJcECE= X-Received: by 2002:a17:907:1dd8:b0:993:fba5:cdf1 with SMTP id og24-20020a1709071dd800b00993fba5cdf1mr5658452ejc.22.1694957868430; Sun, 17 Sep 2023 06:37:48 -0700 (PDT) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 From: Mario Marietto Date: Sun, 17 Sep 2023 15:37:12 +0200 Message-ID: Subject: make[4]: "/build/armv7/usr/src/sys/conf/kmod.mk" line 234: Malformed conditional (!defined(DEBUG_FLAGS) || ${MK_SPLIT_KERNEL_DEBUG} =="no") To: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="000000000000a85b8f06058e2159" X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.96 / 15.00]; SUBJECT_HAS_CURRENCY(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.963]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62a:from]; SUBJECT_HAS_EXCLAIM(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-Rspamd-Queue-Id: 4RpTWf4x45z3RSP --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
Hello to everyone,

I'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) :


FreeBSD 13.2-RELEASE=
-p3 GENERIC amd64

to an armv7 target :


=
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 https://bugs.freebsd.org/bugzilla=
/attachment.cgi?id=3D242127&action=3Ddiff

patch -u < 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]: "/build/armv7/usr/src/sys/conf/kmo=
d.mk" line 234: Malformed conditional (!defined(DEBUG_FLAGS) || ${=
MK_SPLIT_KERNEL_DEBUG} =3D=3D"no")

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


'cause these errors I can't issue the next command :


# make -DNO_KERNELDEPEND -DNO_CLEAN installkernel TARGET_ARCH=3Darmv7 KERNC=
ONF=3DGENERIC DESTDIR=3D$BASEDIR/build


Any idea about how to fix it ? thanks.
=

--
Mario.
--000000000000a85b8f06058e2159--