From nobody Sun Sep 17 13:59:43 2023 X-Original-To: freebsd-hackers@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 4RpV1g2mbyz4spxH; Sun, 17 Sep 2023 14:00:23 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 4RpV1f3h90z3VTG; Sun, 17 Sep 2023 14:00:22 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=jQxh1bLv; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::634 as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-99c93638322so792142766b.1; Sun, 17 Sep 2023 07:00:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694959220; x=1695564020; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=I4kyz7/PiQ2XatmATVkbGpGplQFSIPsioi38OusTWYg=; b=jQxh1bLv0e0UG6Sb3HD0mWEomSZZIgdjmvKyvfcknxR85GcMx0GztzNFg1dlIvXDel a3wgMN5OMxc1Dfd9aGaJ5hLddOpq4lHqlNEiUdNB79P8haFpp78UbaZ2LGNphReJhu5/ jbR6Y/l+KV5f3KoCothd+MBEwWPK4SWNd3DjqYSUjk79b6DFhkn4FGsN/3JZW2SEgqYF 5/AoDHrrYvhAHXG5084zl6eoe4vKlY5CG+LOpjbHgrffC/rdVyXKK6Goaj8v0ZZoWcPV TR+v+mCP2w4eZGQliPIMYM4dKKtmLDh6FGUZZkJ5HuNQ1osQ7h4fHs79DPW8rhsFi8DP s5lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694959220; x=1695564020; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=I4kyz7/PiQ2XatmATVkbGpGplQFSIPsioi38OusTWYg=; b=R76dr7lXqkV7UehI4MDhO8nzVv6f0bZU/52357KUNoWQJ8APW1NVEmJEJKZbVcSmbp 5c2knF1L9ylcXQmvrcd9tgEX5HoUBvOsDQMtW/zK93+jDWYOaDV+el7xG5i/WCz6ZIFG sw5y6X5czlerl6R26nJlgBdF2qf7sbwVwzJ0q/CfC+UD0YjVUujbDPG8C+LHnJ8cwF+E 92Ow6PrOTx9FInBvkZXV3ZBMCBPdTEaF5vDEU0Rt55yOo+TcHUozgiphraxl6lE1H1nQ XkZW6yZB6MfppUuNrFi+Gttjq6g3uVxdHokbJUe45ZHFCdiVm3K/++3dTPegk4QtchLf FLyg== X-Gm-Message-State: AOJu0YwdmJZZuHQ5ED4ojU1+fUZ6D2D4KHpSok62CU33xxJMu1U+cTyw gZKreX8XBVI0xvbBRceOI3N6pY1X9Hw/UXe+t688rMTayyo= X-Google-Smtp-Source: AGHT+IG1ra0xdiigy432x3jqf2sI4oupYxFiHi6hYOl8GZP8NLKRI0idbh2G4cWqJoStbpK0YjpIYigAJn7Dh4OzN24= X-Received: by 2002:a17:906:31cb:b0:9a2:1e14:86b9 with SMTP id f11-20020a17090631cb00b009a21e1486b9mr8968987ejf.0.1694959219609; Sun, 17 Sep 2023 07:00:19 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Sun, 17 Sep 2023 15:59:43 +0200 Message-ID: Subject: Fwd: make[4]: "/build/armv7/usr/src/sys/conf/kmod.mk" line 234: Malformed conditional (!defined(DEBUG_FLAGS) || ${MK_SPLIT_KERNEL_DEBUG} =="no") To: freebsd-hackers , hackers@freebsd.org Content-Type: multipart/alternative; boundary="00000000000031978c06058e7271" X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.82 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_HAS_CURRENCY(1.00)[]; NEURAL_HAM_SHORT(-0.82)[-0.823]; 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]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::634:from]; SUBJECT_HAS_EXCLAIM(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,hackers@freebsd.org] X-Rspamd-Queue-Id: 4RpV1f3h90z3VTG --00000000000031978c06058e7271 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. -- Mario. --00000000000031978c06058e7271 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello to = everyone,

I'm trying t= o cross-compile the kernel on a different host (with the goal to apply a pa= tch,but this a different story) :


Fr=
eeBSD 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.fr=
eebsd.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/kmod.mk" line 234: Malformed conditional (!defined(=
DEBUG_FLAGS) || ${MK_SPLIT_KERNEL_DEBUG} =3D=3D"no")

make[4]: "/build/armv7/usr/src/sys/conf/kmod.mk" line 334: Malformed conditional (defined(D=
EBUG_FLAGS) && ${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.

<= p>

--
Mario.


--
Mario.
--00000000000031978c06058e7271--