* "make config" to another architecture doesn't relink include/asm
@ 2009-05-22 16:31 Robert P. J. Day
2009-05-22 18:45 ` Bill Davidsen
2009-05-23 11:22 ` Arnd Bergmann
0 siblings, 2 replies; 6+ messages in thread
From: Robert P. J. Day @ 2009-05-22 16:31 UTC (permalink / raw)
To: Linux Kernel Mailing List
should i expect this with a fresh tree on x86_64?
$ make distclean
$ make defconfig
$ make modules_prepare
$ ls -l include/asm
lrwxrwxrwx 1 rpjday rpjday 7 2009-05-22 12:24 asm -> asm-x86
$
oh, wait, i changed my mind, i want to switch architectures so start
over:
$ make clean
$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- omap3_beagle_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
scripts/kconfig/conf -s arch/arm/Kconfig
include/config/auto.conf:15:warning: symbol value 'arch/x86/configs/x86_64_defconfig' invalid for ARCH_DEFCONFIG
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
ERROR: the symlink include/asm points to asm-x86 but asm-arm was expected
set ARCH or save .config and run 'make mrproper' to fix it
make: *** [include/asm] Error 1
$ ls -l include/asm
lrwxrwxrwx 1 rpjday rpjday 7 2009-05-22 12:24 include/asm -> asm-x86
$
shouldn't it be sufficient that, if i do another "make ??_defconfig"
to another architecture, all traces of the previous configure are
erased and include/asm should be relinked automatically?
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Annoying Kernel Pedantry.
Web page: http://crashcourse.ca
Linked In: http://www.linkedin.com/in/rpjday
Twitter: http://twitter.com/rpjday
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: "make config" to another architecture doesn't relink include/asm
2009-05-22 16:31 "make config" to another architecture doesn't relink include/asm Robert P. J. Day
@ 2009-05-22 18:45 ` Bill Davidsen
2009-05-22 19:36 ` Robert P. J. Day
2009-05-23 11:22 ` Arnd Bergmann
1 sibling, 1 reply; 6+ messages in thread
From: Bill Davidsen @ 2009-05-22 18:45 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Linux Kernel Mailing List
Robert P. J. Day wrote:
> should i expect this with a fresh tree on x86_64?
>
> $ make distclean
> $ make defconfig
> $ make modules_prepare
> $ ls -l include/asm
> lrwxrwxrwx 1 rpjday rpjday 7 2009-05-22 12:24 asm -> asm-x86
> $
>
> oh, wait, i changed my mind, i want to switch architectures so start
> over:
>
> $ make clean
> $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- omap3_beagle_defconfig
> $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
> scripts/kconfig/conf -s arch/arm/Kconfig
> include/config/auto.conf:15:warning: symbol value 'arch/x86/configs/x86_64_defconfig' invalid for ARCH_DEFCONFIG
> CHK include/linux/version.h
> make[1]: `include/asm-arm/mach-types.h' is up to date.
> CHK include/linux/utsrelease.h
> UPD include/linux/utsrelease.h
> ERROR: the symlink include/asm points to asm-x86 but asm-arm was expected
> set ARCH or save .config and run 'make mrproper' to fix it
> make: *** [include/asm] Error 1
>
> $ ls -l include/asm
> lrwxrwxrwx 1 rpjday rpjday 7 2009-05-22 12:24 include/asm -> asm-x86
> $
>
> shouldn't it be sufficient that, if i do another "make ??_defconfig"
> to another architecture, all traces of the previous configure are
> erased and include/asm should be relinked automatically?
>
Does "make distclean" (or maybe "make mrproper") get you to really clean status?
--
Bill Davidsen <davidsen@tmr.com>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: "make config" to another architecture doesn't relink include/asm
2009-05-22 18:45 ` Bill Davidsen
@ 2009-05-22 19:36 ` Robert P. J. Day
0 siblings, 0 replies; 6+ messages in thread
From: Robert P. J. Day @ 2009-05-22 19:36 UTC (permalink / raw)
To: Bill Davidsen; +Cc: Linux Kernel Mailing List
On Fri, 22 May 2009, Bill Davidsen wrote:
> Robert P. J. Day wrote:
> > should i expect this with a fresh tree on x86_64?
> >
> > $ make distclean
> > $ make defconfig
> > $ make modules_prepare
> > $ ls -l include/asm
> > lrwxrwxrwx 1 rpjday rpjday 7 2009-05-22 12:24 asm -> asm-x86
> > $
> >
> > oh, wait, i changed my mind, i want to switch architectures so start
> > over:
> >
> > $ make clean
> > $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- omap3_beagle_defconfig
> > $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
> > scripts/kconfig/conf -s arch/arm/Kconfig
> > include/config/auto.conf:15:warning: symbol value
> > 'arch/x86/configs/x86_64_defconfig' invalid for ARCH_DEFCONFIG
> > CHK include/linux/version.h
> > make[1]: `include/asm-arm/mach-types.h' is up to date.
> > CHK include/linux/utsrelease.h
> > UPD include/linux/utsrelease.h
> > ERROR: the symlink include/asm points to asm-x86 but asm-arm was expected
> > set ARCH or save .config and run 'make mrproper' to fix it
> > make: *** [include/asm] Error 1
> >
> > $ ls -l include/asm
> > lrwxrwxrwx 1 rpjday rpjday 7 2009-05-22 12:24 include/asm -> asm-x86
> > $
> >
> > shouldn't it be sufficient that, if i do another "make ??_defconfig"
> > to another architecture, all traces of the previous configure are
> > erased and include/asm should be relinked automatically?
> >
> Does "make distclean" (or maybe "make mrproper") get you to really clean
> status?
yes, but the issue is that "make clean" should still have the same
effect WRT to resetting that symlink, especially since the error
message tells the user to set ARCH and the user (i.e., me) *has* set
ARCH. put another way, if i do a config with a specific setting for
ARCH, it seems non-intuitive to *not* reset the symlink representing
that architecture.
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Annoying Kernel Pedantry.
Web page: http://crashcourse.ca
Linked In: http://www.linkedin.com/in/rpjday
Twitter: http://twitter.com/rpjday
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: "make config" to another architecture doesn't relink include/asm
2009-05-22 16:31 "make config" to another architecture doesn't relink include/asm Robert P. J. Day
2009-05-22 18:45 ` Bill Davidsen
@ 2009-05-23 11:22 ` Arnd Bergmann
2009-05-23 11:35 ` Michael S. Zick
2009-05-23 14:11 ` Robert P. J. Day
1 sibling, 2 replies; 6+ messages in thread
From: Arnd Bergmann @ 2009-05-23 11:22 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Linux Kernel Mailing List, linux-kbuild, sam
On Friday 22 May 2009, Robert P. J. Day wrote:
> shouldn't it be sufficient that, if i do another "make ??_defconfig"
> to another architecture, all traces of the previous configure are
> erased and include/asm should be relinked automatically?
In 2.6.30, the symlink is finally no longer needed, so maybe we
should simply drop it to solve this problem as well.
Arnd <><
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: "make config" to another architecture doesn't relink include/asm
2009-05-23 11:22 ` Arnd Bergmann
@ 2009-05-23 11:35 ` Michael S. Zick
2009-05-23 14:11 ` Robert P. J. Day
1 sibling, 0 replies; 6+ messages in thread
From: Michael S. Zick @ 2009-05-23 11:35 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Robert P. J. Day, Linux Kernel Mailing List, linux-kbuild, sam
On Sat May 23 2009, Arnd Bergmann wrote:
> On Friday 22 May 2009, Robert P. J. Day wrote:
> > shouldn't it be sufficient that, if i do another "make ??_defconfig"
> > to another architecture, all traces of the previous configure are
> > erased and include/asm should be relinked automatically?
>
> In 2.6.30, the symlink is finally no longer needed, so maybe we
> should simply drop it to solve this problem as well.
>
With the note to set ARCH='<whatever>' either in the environment
or on the command line beforehand.
Sort of a "belt and suspenders" suggestion.
Mike
> Arnd <><
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: "make config" to another architecture doesn't relink include/asm
2009-05-23 11:22 ` Arnd Bergmann
2009-05-23 11:35 ` Michael S. Zick
@ 2009-05-23 14:11 ` Robert P. J. Day
1 sibling, 0 replies; 6+ messages in thread
From: Robert P. J. Day @ 2009-05-23 14:11 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Linux Kernel Mailing List, linux-kbuild, sam
[-- Attachment #1: Type: TEXT/PLAIN, Size: 997 bytes --]
On Sat, 23 May 2009, Arnd Bergmann wrote:
> On Friday 22 May 2009, Robert P. J. Day wrote:
> > shouldn't it be sufficient that, if i do another "make
> > ??_defconfig" to another architecture, all traces of the previous
> > configure are erased and include/asm should be relinked
> > automatically?
> In 2.6.30, the symlink is finally no longer needed, so maybe we
> should simply drop it to solve this problem as well.
or that could work, too. :-)
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Annoying Kernel Pedantry.
Web page: http://crashcourse.ca
Linked In: http://www.linkedin.com/in/rpjday
Twitter: http://twitter.com/rpjday
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-05-23 14:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-22 16:31 "make config" to another architecture doesn't relink include/asm Robert P. J. Day
2009-05-22 18:45 ` Bill Davidsen
2009-05-22 19:36 ` Robert P. J. Day
2009-05-23 11:22 ` Arnd Bergmann
2009-05-23 11:35 ` Michael S. Zick
2009-05-23 14:11 ` Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox