Re: crossbuild buildworld on amd64 for arm fails to find KERNCONF GENERIC after r302865

2016-07-15 Thread Cy Schubert
In message 
, Guy Yur writes:
> On Fri, Jul 15, 2016 at 6:11 PM, Cy Schubert  wrote
> :
> > In message  c
> > 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

Yes, this is one solution. The plan is to use this:

.if make(*kernel) || make(*kernel.debug) || make(*kernel-packages)

> 
> 
> 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

That causes other breakage.

I believe I have a solution. I just need to make sure to thoroughly test it 
first.


-- 
Cheers,
Cy Schubert 
FreeBSD UNIX:     Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: crossbuild buildworld on amd64 for arm fails to find KERNCONF GENERIC after r302865

2016-07-15 Thread Guy Yur
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
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: crossbuild buildworld on amd64 for arm fails to find KERNCONF GENERIC after r302865

2016-07-15 Thread Cy Schubert
In message 
, 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.


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


crossbuild buildworld on amd64 for arm fails to find KERNCONF GENERIC after r302865

2016-07-15 Thread Guy Yur
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,
Guy
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"