From owner-freebsd-current@freebsd.org Fri Jul 15 19:16:26 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 273E7B9ABCF for ; Fri, 15 Jul 2016 19:16:26 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B31DD113A for ; Fri, 15 Jul 2016 19:16:25 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: by mail-wm0-x242.google.com with SMTP id x83so3316426wma.3 for ; Fri, 15 Jul 2016 12:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=aTNmWGX1taQ72PzE+e1SK6n8NCQuwRd2VTEJk3C/TeU=; b=yfIk6bByvylj7zXYlvjQbK3jvIbIFz6Ug/GYj5ul/bMdaN+KA0Tx18+VEgB8c5EOk0 2jNnTJ6PK73NCwgmKtrwIyAPwiXKW6W+p89g3EWwRTuot0i14Apk0Q+knXXKUO+QG0fl KMcYGjMqH0szx8gkILlIjA8EdldML+8dl6kyapLfeC5/ceUooSuPm2cX9yfxLWGqT34C H3mwsG35fKwJxBZEXsrVa5NhEUo8EoGJnXcYuaeuwhUCwXt0z9UDLeQhhb9rsDuQaIwA FV3VLfOB6VgoQXN0K/EeH5RWeUgxc8WoPXIySD3rhZ3ZBWlUAuQyOXobpzDtMWGl2WGE ImzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=aTNmWGX1taQ72PzE+e1SK6n8NCQuwRd2VTEJk3C/TeU=; b=AjbNt63j+WgiBopRXxKvAPcJfQnzkKn+D+BJEsXP6IHrlv/rGRGidxKfKXQkP0PN7A WWizXq/COjZedwPcTgw9LL5ZdA/NC/NiPVcMRHhpcdQ+JqEt/GH4jwjthDTgYvLfB0lc sKQbItxvqsM2o2f3cAxTVDVULH/Cky457IoyRWBKd2QB98mAzWrYdlEZjZqcEg+xWgaS E0KzL8e60hn4KDs4x+lAEJr/q7D/nXluoi9sk9mM1jSPYm0JPzC5Uf5o2C2uT3mv7Nln BxNSF3FFxVSWWgZu3O4RhLfvoxcgBgbnOzQ+8w+PyAynXwgP0HftutWrxaEd9+nlDBz7 xuAg== X-Gm-Message-State: ALyK8tItLKgVfRCIj3+myN2eip1rw20jyLo1PXTKLLG0LNQv7pJAz+rX4IQ8ODrQmtsjjbDE2jrl2DU6M5auHA== X-Received: by 10.28.46.22 with SMTP id u22mr23420122wmu.85.1468610184318; Fri, 15 Jul 2016 12:16:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.9.142 with HTTP; Fri, 15 Jul 2016 12:16:23 -0700 (PDT) In-Reply-To: <201607151511.u6FFBbLw086894@slippy.cwsent.com> References: <201607151511.u6FFBbLw086894@slippy.cwsent.com> From: Guy Yur Date: Fri, 15 Jul 2016 22:16:23 +0300 Message-ID: Subject: Re: crossbuild buildworld on amd64 for arm fails to find KERNCONF GENERIC after r302865 To: Cy Schubert Cc: freebsd-current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2016 19:16:26 -0000 On Fri, Jul 15, 2016 at 6:11 PM, Cy Schubert wrote: > In message om> > , Guy Yur writes: >> Hi, >> >> I am trying to crossbuild arm on an amd64 machine and buildworld >> is checking for KERNCONF and fails to find GENERIC kernel. >> I only set KERNCONF when I am doing buildkernel/installkernel >> so KERNCONF is the default set in Makefile.inc1. >> >> # make buildworld TARGET=arm TARGET_ARCH=armv6 >> make[1]: "/usr/src/Makefile.inc1" line 122: SYSTEM_COMPILER: >> Determined that CC=cc matches the source tree. Not bootstrapping a >> cross-compiler. >> make[1]: "/usr/src/Makefile.inc1" line 1144: Missing KERNCONF >> /usr/src/sys/arm/conf/GENERIC >> *** Error code 1 >> >> Stop. >> make: stopped in /usr/src >> >> >> # uname -a >> FreeBSD vm4.localdomain 12.0-CURRENT FreeBSD 12.0-CURRENT #13 >> r302895M: Fri Jul 15 16:06:24 IDT 2016 >> root@vm4.localdomain:/usr/obj/usr/src/sys/VIRTUALBOX amd64 > > Thanks for the report. I've reverted it now until I get the time to look at > it more closely. > > > -- > Cheers, > Cy Schubert > FreeBSD UNIX: Web: http://www.FreeBSD.org > > The need of the many outweighs the greed of the few. > Doing the missing check only for the kernel targets works for me. .if make(buildkernel) || \ make(installkernel) || make(installkernel.debug) || \ make(reinstallkernel) || make(reinstallkernel.debug) || \ make(distributekernel) || make(distributekernel.debug) || \ make(packagekernel) || make(create-kernel-packages) .error Missing KERNCONF ${KERNCONFDIR}/${_kernel} .endif It might be possible cover more of the section with the .if make. I think these are all the targets that use BUILDKERNELS, INSTALLKERNEL. .if make(buildkernel) || \ make(installkernel) || make(installkernel.debug) || \ make(reinstallkernel) || make(reinstallkernel.debug) || \ make(distributekernel) || make(distributekernel.debug) || \ make(packagekernel) || make(create-kernel-packages) BUILDKERNELS= ... .error Missing KERNCONF ${KERNCONFDIR}/${_kernel} .endif .endfor .endif Regards, Guy