Re: User compile of Hg version broken

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 25 Apr 2006, Mauro Carvalho Chehab wrote:
> > changeset:   3844:4d008d32fdcb
> > user:        Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxx>
> > date:        Sat Apr 22 09:42:38 2006 -0300
> > summary:     Adds capability to build conf/mconf/qconf/lxdialog at kernel tree
> This patch is required, since make *config requires
> conf/mconf/gconf/lxdialog to be at the linux tree, for those to work. To
> avoid root access, you may just change the owner of the linux sources.

I didn't need write access to the kernel sources to use make *config before
this change.  For some reason make thinks it needs to rebuild *conf, when it
doesn't.

I think the command to build *conf isn't correct, as even if I *do* have write
access, it doesn't work.

It looks like there is a mistake in the Makefile here:
#################################################
# Compiler fixup rules

CC += -I$(obj)

This sets CC="cc -I."  It seems like -I. belongs with CFLAGS, not CC.  Then
later the build command for making *conf is created:

build := srctree=$(KDIR) HOSTCXX=$(CXX) HOSTCC=$(CC) CONFIG_SHELL=$(CONFIG_SHELL)
-f $(KDIR)/scripts/Makefile.build obj

The part HOSTCC=$(CC) doesn't work correctly, the make command used becomes:

make blah blah HOSTCC=cc -I. CONFIG_SHELL=sh blah blah

The -I.  isn't part of HOSTCC, it's a new -I option to make, telling make
where to look for included makefiles.  That's not what supposed to happen.
Maybe you want to write HOSTCC="$(CC)", but that's still wrong too.  The -I.
option is for the v4l compile, not for the kernel conf build.

Fixing this still doesn't let *conf build, there is something else wrong too.

_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux