[K42-discussion] Alternative K42 Build System

Christopher Yeoh cyeoh at samba.org
Thu Feb 2 15:34:40 EST 2006


At 2006/2/1 07:42-0500  Amos Waterland writes:
> The K42 development branch has a fast non-recursive build system.  Some
> people have expressed interest in using it for mainline K42 development,
> so I am attaching it here.  Just drop it in kitchsrc, do a full build
> with the existing machinery, and then use `make -f Makefile.new' to do
> rebuilds.
> 
> I wrote it mostly because I could not afford rebuild times of 2 minutes
> or more just from making a simple change to the boot logic, so it is
> mainly good at rebuilds right now.  I haven't tackled header file
> generation, but I believe that is the only hard thing stopping this from
> being able to build K42 from scratch.  Easy things still needed are AIX
> support, proper -MD dependency generation etc.

Hi Amos,

Here is the patch for the Makefile to implement the AIX support we
just worked on:

Chris
-- 
cyeoh at au.ibm.com
IBM OzLabs Linux Development Group
Canberra, Australia

--- Makefile.new        2006-02-02 11:31:06.000000000 +1100
+++ Makefile.new.aix    2006-02-02 15:31:27.000000000 +1100
@@ -16,6 +16,12 @@
 U = /u/kitchawa/k42-packages
 L = $(U)/src-cvs/linux-029

+ifeq "$(OS)" "AIX"
+TOOL_BUILD = $(BUILD)
+else
+TOOL_BUILD = $(OS)_$(BUILD)
+endif
+
 # 64-bit cross-compile tools.
 CROSS_COMPILE = powerpc64-linux-
 CC = $(CROSS_COMPILE)gcc
@@ -81,7 +87,7 @@
        $(call status, STRIP, $@)
        $(STRIP32) -g $< -o $@
        $(call status, ADDNOTE, $@)
-       $(O)/install/tools/$(OS)_$(BUILD)/$(ARCH)/addnote $@
+       $(O)/install/tools/$(TOOL_BUILD)/$(ARCH)/addnote $@

 OBJS += $(S)/os/mambo_boot_image
 $(S)/os/mambo_boot_image: $(H)/os/arch/$(ARCH)/chrp_boot_elf.scp \
@@ -105,7 +111,7 @@
        $(call status, STRIP, $@)
        $(STRIP32) -g $< -o $@
        $(call status, ADDNOTE, $@)
-       $(O)/install/tools/$(OS)_$(BUILD)/$(ARCH)/addnote $@
+       $(O)/install/tools/$(TOOL_BUILD)/$(ARCH)/addnote $@

 OBJS += $(S)/os/chrp_boot_image
 $(S)/os/chrp_boot_image:  $(H)/os/arch/$(ARCH)/chrp_boot_elf.scp \




More information about the K42-discussion mailing list