[PATCH] Applet installation

Bernhard Fischer rep.nop at aon.at
Sun Oct 9 19:00:14 UTC 2005


On Sun, Oct 09, 2005 at 07:16:36PM +0200, Yann E. MORIN wrote:

>And there is stops with an error, saying:
>-8<---
>[me at there] make install
>make -C /home/ymorin/dev/busybox-svn \
>top_srcdir=/home/ymorin/dev/busybox-svn \
>top_builddir=/home/ymorin/dev/busybox-svn \
>KBUILD_SRC=/home/ymorin/dev/busybox-svn \
>PREFIX= \                                        <- here are the two
>CROSS= \                                         <- 'offending' lines
>-f /home/ymorin/dev/busybox-svn/Makefile install
>make[1]: Entering directory `/home/ymorin/dev/busybox-svn'
>/bin/sh /home/ymorin/dev/busybox-svn/applets/install.sh
>No installation directory, aborting.
>make[1]: *** [install] Error 1
>make[1]: Leaving directory `/home/ymorin/dev/busybox-svn'
>make: *** [install] Error 2
>-8<---
>
>I specified both PREFIX and CROSS when "make menuconfig", and there they are
>empty... :-(

I don't think that passing PREFIX and CROSS to "make menuconfig" did
ever work, did it? You're supposed to set them in menuconfig.
>
>I guess that line Makefile:73 is somehow the culprit, because is does not yet
>know of either CROSS or PREFIX, as .config is not yet included. With this rule,
>a second make is invoked, which will include .config. Unfortunately, CROSS and
>PREFIX were specified on the command line, and thus will override any
>declaration in the Makefile (and Rules.mak).

Hm, yes. I added both CROSS and PREFIX there because of
https://bugs.busybox.net/view.php?id=94

>What shall I do (I have to admit that make and Makefiles are no less than
>black-magic to me, especially this rule... :-/ )? Can/must I simply remove
>the offending two lines above? Or is it more complicated? Shall I drop the
>work on applet installation?

I'd say just drop the two lines. They shouldn't be needed any more.
>
>As well, because we can specify the cross compiler prefix when in configure,
>should we keep CROSS on the command line? Or we could simply rename the
>CROSS_COMPILER_PREFIX variable with simply CROSS. Comments on this?

I don't know why the CROSS on the commandline was needed, so no idea.




More information about the busybox mailing list