Re: RfC: Don't cd into subdirs during kbuild

From: Sam Ravnborg (sam@ravnborg.org)
Date: Thu Oct 03 2002 - 15:30:54 EST


On Thu, Oct 03, 2002 at 10:01:20PM +0200, Sam Ravnborg wrote:
> Now it's testing time..

1)
In order to make it link I had to change the following in rules.make:
 # If the list of objects to link is empty, just create an empty O_TARGET
 cmd_link_o_target = $(if $(strip $(obj-y)),\
- $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) -r -o $@ $(filter $(obj-y), $^),\
+ $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) -r -o $@ $(filter-out FORCE,$(obj-y)),\
                      rm -f $@; $(AR) rcs $@)

Otherwise no objects were on the commandline because make strips ./

2)
Top-level Makefile still uses make -C therefore apths are relative to first
subdirectory as seen here:
  CC udf/balloc.o
  CC udf/dir.o
  CC udf/file.o
  CC udf/ialloc.o
  

3) acpi failed to compile due to -Idrivers/acpi/include, but current
directory is drivers.

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



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:41 EST