[PATCH] Applet installation

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Sun Oct 9 17:16:36 UTC 2005


Hi all!

On Friday 07 October 2005 182, Yann E. MORIN wrote:
> So I will try to have some time in the WE to modify this, and make a patch
> against svn rather than 1.01.

I need advice here. I don't seem to understand fully the make process...
I ported my patch to svn head as of this afternoon (rev 11817), and all has
gone amiss... The configure part is still OK, but now is time to make install.
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 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).

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?

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?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °---.----------------:  X  AGAINST      |  /e\  There is no  |
| web: ymorin.free.fr | SETI at home 3808 | / \ HTML MAIL    |  """  conspiracy.  |
°---------------------°----------------°------------------°--------------------°



More information about the busybox mailing list