Announce: Kernel Build for 2.5, Release 2.0 is available
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Content-Type: text/plain; charset=us-ascii
Oops, hit encrypt instead of sign.
Release 2.0 of kernel build for kernel 2.5 (kbuild 2.5) is available.
http://sourceforge.net/projects/kbuild/, Package kbuild-2.5, download release 2.0.
... You know what they say about .0 releases ... User beware.
This announcement is for the base kbuild 2.5 code, i386 against 2.4.16. It uses 2.4.16 because that gives a useful comparison against the previous release and a decent branch point from kernel 2.4 to 2.5.
Patches for other architectures and kernels will be out in the next few days, it takes time to generate and test patches for multiple architectures against different kernel trees.
http://marc.theaimsgroup.com/?l=linux-kernel&m=99725412902968&w=2
contains information about the base release of kbuild 2.5.
Changelog:
New, faster core code, thanks to Larry McVoy for providing the memory mapped database code.
Patches are now split into core (kernel independent), common (architecture independent but kernel dependent) and arch (architecture and kernel dependent) files. The core patch applies to all kernels, both 2.4 and 2.5. The common and arch files apply to specific kernels and hardware.
Other than being split into separate patches, kbuild 2.5 for the common and i386 directories is almost unchanged from release 1.12. Tom Duffy's patch for drivers/sbus/{audio,char}/Makefile.in has been included. There are some minor changes where the more rigorous error checking of this release found errors in kbuild 2.4 Makefiles.
The real change is the complete rewrite of the core code. Instead of using a text file that is read by every compile step (slow!), kbuild 2.5 uses Larry McVoy's memory mapped database from BitKeeper (mdbm is both GPL and BKL).
<strong><gloat>
Full 2.4.16 .config, everything that compiles built in. 4 x Pentium III (Cascades) @700MHz, 5600 Bogomips, 1Gb RAM, SCSI, 2.4.17-xfs.
kbuild 2.4:
make oldconfig 0:07
make dep 0:37 (make -j dep is unsafe on some architectures)
make -j8 bzImage modules 14:16
Total 15:00
make -j8 bzImage modules 2:10 (second run, no changes, spurious rebuilds)
kbuild 2.5:
make -j8 oldconfig installable 8:51 (no make dep needed :) make -j8 oldconfig installable :14 (second run, no changes)
</gloat></strong>
More accurate kernel build, easier to write and understand Makefiles, 30% faster than kbuild 2.4. Now the nay-sayers will have to find something else to complain about!
I have not tried this release of kbuild 2.5 with a recent version of CML2. It used to work on CML2 1.9.15, but probably needs some work for the latest CML2. Note that kbuild 2.5 and CML2 are independent, each can function without the other, complaints about CML2 have nothing to do with kbuild 2.5.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Exmh version 2.1.1 10/15/1999
iD8DBQE8rYnPi4UHNye0ZOoRArydAJ0SJk5jLqarn1pXtmX0JTsrPJKQSgCfYBLW dD/osGKC7/q3SSlIxVXUEQA=
=gZmM
-----END PGP SIGNATURE-----
Quoted 10 lines · Keith Owens
kbuild 2.4:
make oldconfig 0:07
make dep 0:37 (make -j dep is unsafe on some architectures)
make -j8 bzImage modules 14:16
Total 15:00
make -j8 bzImage modules 2:10 (second run, no changes, spurious rebuilds)kbuild 2.5:
make -j8 oldconfig installable 8:51 (no make dep needed :) make -j8 oldconfig installable :14 (second run, no changes)
Just to avoid any confusion. kbuild 2.4 is the existing kernel build system, as used in Marcelo's and Linus's kernels. kbuild 2.5 is the complete rewrite of the kernel build system. Although it says 2.5, kbuild 2.5 will run on 2.4 kernels, it was developed on 2.4.
The timings above were for exactly the same .config on the same build machine, building a 2.4.16 kernel, using the existing and new kernel build system. Compared to the existing build system, kbuild 2.5 is much more robust (I found several bugs in the 2.4 rules while developing kbuild 2.5), provides more facilities, has debugging information, is more accurate (2.5 tracks everything, 2.4 only managed about 80% tracking accuracy) and still manages to run 30% faster than the existing build system.
Although kbuild 2.5 will run on 2.4 kernels, I have no plans to send all of kbuild 2.5 to Marcelo. Changing the kernel build on a stable kernel is a bad idea. I will be sending some kbuild 2.4 bug fixes to Marcelo but not the rest of kbuild 2.5. I am now working on kbuild 2.5 patches for 2.4.18, 2.4.19-pre6, 2.5.7 and 2.5.8-pre1 as well as for other architectures, see http://sourceforge.net/projects/kbuild for updates.
Quoted 2 lines · Keith Owens
The timings above were for exactly the same .config on the same build machine,
Can you provide details of this machine?
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html
Quoted 3 lines · Keith Owens
Just to avoid any confusion. kbuild 2.4 is the existing kernel build system, as used in Marcelo's and Linus's kernels. kbuild 2.5 is the complete rewrite of the kernel build system.
So that means that you have a system which does more, is more accurate, and is faster than the system we currently use. Right? Rock on.
Has anyone integrated the kbuild stuff into a BK tree, so I could pull from it and play with it? If not, I might have a go at it and make a bk://kbuild.bkbits.net project.
Signature · 2 lines
--- Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
Quoted 5 lines · Russell King
Quoted 2 lines · Keith Owens
The timings above were for exactly the same .config on the same build machine,
Can you provide details of this machine?
It was in the original message.
http://marc.theaimsgroup.com/?l=linux-kernel&m=101800612931031&w=2
Hi,
Quoted 3 lines · Keith Owens
kbuild 2.5:
make -j8 oldconfig installable 8:51 (no make dep needed :) make -j8 oldconfig installable :14 (second run, no changes)
These 14 seconds (or 37 seconds on my machine) are always needed whatever I try, e.g. "make foo/bar.o" also needs that time. Some other problems:
"make foo/bar.[si]" doesn't work anymore.
"touch include/linux/mm.h" doesn't cause a recompile of any object.
bye, Roman
Quoted 8 lines · Roman Zippel
Quoted 3 lines · Keith Owens
kbuild 2.5:
make -j8 oldconfig installable 8:51 (no make dep needed :) make -j8 oldconfig installable :14 (second run, no changes)These 14 seconds (or 37 seconds on my machine) are always needed whatever I try, e.g. "make
foo/bar.o" also needs that time.
make NO_MAKEFILE_GEN=1 foo/bar.o. Very low overhead for quick and dirty testing of changes, but if you want an accurate kernel build, you have to take the overhead. kbuild 2.4 overhead for a full build when only minor changes have been made is even worse.
Quoted 2 lines
Some other problems:
"make foo/bar.[si]" doesn't work anymore.
Hmm, that was working, I will investigate.
Quoted 1 line
"touch
include/linux/mm.h" doesn't cause a recompile of any object.
I have found some cases where the timestamps are not tracked correctly so changes to dependencies are not always detected. Fixed in build-2.5-core-2, out tomorrow.
Hi,
Quoted 7 lines · Keith Owens
Quoted 2 lines
These 14 seconds (or 37 seconds on my machine) are always needed whatever I try, e.g. "make
foo/bar.o" also needs that time.make NO_MAKEFILE_GEN=1
foo/bar.o. Very low overhead for quick and dirty testing of changes, but if you want an accurate kernel build, you have to take the overhead. kbuild 2.4 overhead for a full build when only minor changes have been made is even worse.
I don't want a kernel build, I just want a single object file to be rebuilt?!
I can understand that it takes longer, when I change a Makefile or the config, but why has the Makefile to be rebuilt, when only a source file changed?
bye, Roman
Quoted 11 lines · Roman Zippel
Quoted 4 lines · Keith Owens
make NO_MAKEFILE_GEN=1
foo/bar.o. Very low overhead for quick and dirty testing of changes, but if you want an accurate kernel build, you have to take the overhead. kbuild 2.4 overhead for a full build when only minor changes have been made is even worse.I don't want a kernel build, I just want a single object file to be rebuilt?!
I can understand that it takes longer, when I change aMakefileor the config, but why has theMakefileto be rebuilt, when only a source file changed?
It takes time to do all the analysis to work out what has changed and what has been affected. You might know that you only changed one file but kernel build and make don't know that until they have checked everything. Changing one file or specifying a command override might affect one file or it might affect the entire kernel.
If you know that you have only changed one source file and you have not altered the Makefiles or the dependency chain in any way, then it _might_ be safe to just rebuild that one file, use NO_MAKEFILE_GEN=1. Otherwise let kbuild work out what has been affected.
Hi,
Quoted 5 lines · Keith Owens
It takes time to do all the analysis to work out what has changed and what has been affected. You might know that you only changed one file but kernel build and make don't know that until they have checked everything. Changing one file or specifying a command override might affect one file or it might affect the entire kernel.
Doing that analysis once is fine. After that it should know what it has to check if I only want foo/bar.o recompiled and that shouldn't take that long.
Quoted 1 line
Otherwise let kbuild work out what has been affected.
That's the problem with kernel hackers, they want to know what's going on. :)
bye, Roman
Quoted 11 lines · Keith Owens
It takes time to do all the analysis to work out what has changed and what has been affected. You might know that you only changed one file but kernel build and make don't know that until they have checked everything. Changing one file or specifying a command override might affect one file or it might affect the entire kernel.
If you know that you have only changed one source file and you have not altered the Makefiles or the dependency chain in any way, then it _might_ be safe to just rebuild that one file, use NO_MAKEFILE_GEN=1. Otherwise let kbuild work out what has been affected.
Humans/Hackers are really really REALLY good at making assumptions and using assumptions that are outdated, thus leading to mistakes. Some/many hackers like to live in there own little world and not worry about the effect they might have on other developers. Using a dependency maintenance tool (such as Make, Cook, ...) to automate the build is the _ONLY_ safe way to be sure the build is correct. This assumes that the build system itself is 100% correct :)
Regards,
Brendan Simon.
Quoted 1 line · Roman Zippel
"touch
include/linux/mm.h" doesn't cause a recompile of any object.
I have found a bug that is probably causing your problem. Can you confirm that you are using a common source and object directory, i.e. no separate object tree?
Hi,
Quoted 5 lines · Keith Owens
Quoted 1 line
"touch
include/linux/mm.h" doesn't cause a recompile of any object.I have found a bug that is probably causing your problem. Can you confirm that you are using a common source and object directory, i.e. no separate object tree?
Yes, so far I only tested this.
bye, Roman
New core code for kbuild 2.5 is available in
http://prdownloads.sourceforge.net/kbuild/kbuild-2.5-core-2.bz2
Backout core-1 then apply this patch.
Changes from core-1.
Do not set KBUILD_OBJECT for objects that are linked into multiple conglomerates, there is no unambiguous KBUILD_OBJECT value for such objects. These objects will not be able to use module or boot parameters in the forthcoming merge of module and boot parameter handling.
Create object directory before copying .prepend/.append files. Fixes Richard Chan's bug report.
make foo/bar.[si] works again. Fixes Roman Zippel bug report.
Correctly standardize relative names. Fixes Roman Zippel "touch include/linux/mm.h" does nothing bug. Only affected builds in common source and object mode.
Update timestamps on files generated by make as they are used. This removes some spurious rebuilds.
Changes to the underlying database layout to reduce the mmap footprint. This speeds up kbuild 2.5 on smaller machines.
New core, common and ia64 code for kbuild 2.5 is available in
http://sourceforge.net/project/showfiles.php?group_id=18813&release_id=83065
Changes from core-2 to core-3.
Ensure that database records are aligned. Do not assume that keys are aligned (all the world is not a 386).
Changes from common-2.4.18-1 to common-2.4.18-2.
Minor changes to common code to suit ia64.
New, ia64-020226-2.4.18-1.
core-3 works on ia64, it should work on other architectures that have alignment requirements such as sparc.
Other architecture maintainers can use core-3 and common-2.4.18-2 as a starting point for porting this release of kbuild 2.5 to their architecture. The existing arch patches from Release 1.12 are a good starting point, ia64 was almost unchanged from Release 1.12 to 2.0.
I have not tested any of the kbuild 2.5 code on big endian machines. It should work as is but it would be nice to have it confirmed.
Quoted 7 lines · Keith Owens
Other architecture maintainers can use core-3 and common-2.4.18-2 as a starting point for porting this release of kbuild 2.5 to their architecture. The existing arch patches from Release 1.12 are a good starting point, ia64 was almost unchanged from Release 1.12 to 2.0.
I have not tested any of the kbuild 2.5 code on big endian machines. It should work as is but it would be nice to have it confirmed.
Ok, with core-3, now kbuild 2.5 v2.0 works on sparc64. There was one typo in one sparc64 Makefile.in from 1.12. Attached is the patch to fix this.
Also attached is the full kbuild 2.0 patch for sparc64 2.4.18 tree.
Signature · 3 lines
He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me. -- Thomas Jefferson
arch/sparc64/lib/Makefile.in +1 -1
@@ -13,4 +13,4 @@ select(lib.a) uses_asm_offsets(VISsave.o VIScopy.o VIScsum.o blockops.o checksum.o - U3copy_from_user.o U3copt_to_user.o U3copy_in_user.o U3memcpy.o) + U3copy_from_user.o U3copy_to_user.o U3copy_in_user.o U3memcpy.o)
arch/sparc64/Makefile.defs.config +19 -0
@@ -0,0 +1,19 @@ +# +# arch/$(ARCH)/Makefile.defs.config +# +# This file is included by the global makefile so that you can add your own +# architecture-specific flags. It should only contain variable settings, +# any dependencies should be in arch/$(ARCH)/Makefile.in +# +# This file contains only values that depend on the config. +# +# Do not use ifdef/ifndef, CONFIG_xxx can be defined as 'n'. +# ifneq ($(subst n,,$(CONFIG_xxx)),) is equivalent to the old +# ifdef CONFIG_xxx but is CML2 compatible. +# + +# Uncomment this if you are doing kgdb source level debugging of the kernel to +# get the proper debugging information. +# FIXME: There should be a config option to control this. KAO + +#CFLAGS += -g
arch/sparc64/Makefile.defs.noconfig +53 -0
53 lines not on this page · raw message
arch/sparc64/Makefile.in +47 -0
47 lines not on this page · raw message
arch/sparc64/asm-offsets.c +64 -0
64 lines not on this page · raw message
arch/sparc64/boot/Makefile.in +13 -0
@@ -0,0 +1,13 @@ +# +# Makefile for sparc64 boot. +# +# No tftp support yet, I want to keep the kbuild files as standard as possible. +# Architecture special and user special build targets can be handled by ADDn +# rules, see Documentation/kbuild/kbuild-2.5.txt. KAO +# +# If special targets become part of the Makefile.in files then everything must +# be handled by config rules. That includes the names of target files such as +# root image (use CONFIG_TFTP_NAME), external utility names such as elftoaut +# (use CONFIG_ELFTOAOUT) etc. A user must be able to copy a config from one +# kernel to another, type 'make oldconfig install' with no other parameters and +# have the build do exactly the same as before. KAO
arch/sparc64/boot/config.install-2.5 +43 -0
43 lines not on this page · raw message
arch/sparc64/boot/rules-2.5.cml +27 -0
@@ -0,0 +1,27 @@ +symbols +kernel_format_sparc64 'The format used for the installed kernel' text +All kernel builds create vmlinux as an ELF object. vmlinux may not be +suitable for loading, either because your bootloader cannot handle ELF +or the object is too large. This option selects the format for the +installed kernel. If unsure, use vmlinuz. +. +VMLINUX_SPARC64 'vmlinux' like VMLINUX_help +VMLINUZ_SPARC64 'vmlinuz' like VMLINUZ_help + +private VMLINUX_SPARC64 VMLINUZ_SPARC64 + +choices kernel_format_sparc64 # The format that the kernel is to be compiled in + VMLINUX_SPARC64 VMLINUZ_SPARC64 default VMLINUZ_SPARC64 + +# FIXME: These critical config options should be in arch/$(ARCH)/rules.cml. For +# coexistence of kbuild 2.4 and 2.5 it is easier to put them here, move them +# later. KAO + +# FIXME: more: Set the real sparc64 critical options. + +derive KBUILD_CRITICAL_ARCH_SPARC64 from "???" + +menu installation + kernel_format_sparc64 + +unless SPARC64 suppress kernel_format_sparc64
arch/sparc64/kernel/Makefile.in +22 -0
@@ -0,0 +1,22 @@ + +expsyms(sparc64_ksyms.o) + +select(head.o init_task.o) + +select(process.o setup.o cpu.o idprom.o traps.o devices.o auxio.o irq.o ptrace.o + time.o sys_sparc.o signal.o unaligned.o central.o pci.o starfire.o + semaphore.o power.o sbus.o iommu_common.o sparc64_ksyms.o chmc.o) + +select(CONFIG_PCI ebus.o isa.o pci_common.o pci_iommu.o + pci_psycho.o pci_sabre.o pci_schizo.o) +select(CONFIG_SMP smp.o trampoline.o) +select(CONFIG_SPARC32_COMPAT sys32.o sys_sparc32.o signal32.o ioctl32.o) +select(CONFIG_BINFMT_ELF32 binfmt_elf32.o) +select(CONFIG_BINFMT_AOUT32 binfmt_aout32.o) +select(CONFIG_SUNOS_EMUL sys_sunos32.o sunos_ioctl32.o) +select(CONFIG_Y CONFIG_SOLARIS_EMUL sys_sunos32.o sunos_ioctl32.o) + +uses_asm_offsets(head.o head.o trampoline.o winfixup.o) + +# FIXME: ioctl32.c #include "../../../drivers/char/drm" :(. +extra_cflags(ioctl32.o $(src_includelist /drivers/char/drm))
arch/sparc64/kernel/entry.S +7 -0
@@ -21,6 +21,13 @@ #include <asm/visasm.h> #include <asm/estate.h> +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ + /* #define SYSCALL_TRACING 1 */ #define curptr g6
arch/sparc64/kernel/etrap.S +7 -0
@@ -13,6 +13,13 @@ #include <asm/head.h> #include <asm/processor.h> +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ + #define TASK_REGOFF (THREAD_SIZE-TRACEREG_SZ-REGWIN_SZ) #define ETRAP_PSTATE1 (PSTATE_RMO | PSTATE_PRIV) #define ETRAP_PSTATE2 (PSTATE_RMO | PSTATE_PEF | PSTATE_PRIV | PSTATE_IE)
arch/sparc64/kernel/head.S +7 -1
@@ -10,7 +10,6 @@ #include <linux/config.h> #include <linux/version.h> #include <linux/errno.h> -#include <asm/asm_offsets.h> #include <asm/asi.h> #include <asm/pstate.h> #include <asm/ptrace.h>
@@ -25,6 +24,13 @@ #include <asm/dcu.h> #include <asm/head.h> #include <asm/ttable.h> + +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ /* This section from from _start to sparc64_boot_end should fit into * 0x0000.0000.0040.4000 to 0x0000.0000.0040.8000 and will be sharing space
arch/sparc64/kernel/rtrap.S +7 -0
@@ -13,6 +13,13 @@ #include <asm/visasm.h> #include <asm/processor.h> +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ + #define PTREGS_OFF (STACK_BIAS + REGWIN_SZ) #define RTRAP_PSTATE (PSTATE_RMO|PSTATE_PEF|PSTATE_PRIV|PSTATE_IE) #define RTRAP_PSTATE_IRQOFF (PSTATE_RMO|PSTATE_PEF|PSTATE_PRIV)
arch/sparc64/kernel/trampoline.S +7 -1
@@ -14,7 +14,13 @@ #include <asm/pgtable.h> #include <asm/spitfire.h> #include <asm/processor.h> -#include <asm/asm_offsets.h> + +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ .data .align 8
arch/sparc64/kernel/winfixup.S +7 -1
@@ -11,7 +11,13 @@ #include <asm/ptrace.h> #include <asm/processor.h> #include <asm/spitfire.h> -#include <asm/asm_offsets.h> + +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ .text .align 32
arch/sparc64/lib/Makefile.in +14 -0
@@ -0,0 +1,14 @@ +# +# Makefile for sparc64 library files. +# + +objlink(lib.a PeeCeeI.o blockops.o debuglocks.o strlen.o strncmp.o memscan.o + strncpy_from_user.o strlen_user.o memcmp.o checksum.o VIScopy.o + VISbzero.o VISmemset.o VIScsum.o VIScsumcopy.o VIScsumcopyusr.o + VISsave.o atomic.o rwlock.o bitops.o dec_and_lock.o U3memcpy.o + U3copy_from_user.o U3copy_to_user.o U3copy_in_user.o) + +select(lib.a) + +uses_asm_offsets(VISsave.o VIScopy.o VIScsum.o blockops.o checksum.o + U3copy_from_user.o U3copy_to_user.o U3copy_in_user.o U3memcpy.o)
arch/sparc64/lib/VIScopy.S +7 -1
@@ -26,7 +26,13 @@ #ifdef __KERNEL__ #include <asm/visasm.h> -#include <asm/asm_offsets.h> + +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ #define FPU_CLEAN_RETL \ ldub [%g6 + AOFF_task_thread + AOFF_thread_current_ds], %o1; \
arch/sparc64/lib/VIScsum.S +8 -1
@@ -28,7 +28,14 @@ #include <asm/head.h> #include <asm/asi.h> #include <asm/visasm.h> -#include <asm/asm_offsets.h> + +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ + #else #define ASI_BLK_P 0xf0 #define FRPS_FEF 0x04
arch/sparc64/lib/VISsave.S +8 -0
@@ -11,6 +11,14 @@ #include <asm/ptrace.h> #include <asm/visasm.h> +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#define AOFF_task_fpregs (((ASIZ_task) + (64 - 1)) & ~(64 - 1)) +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ + .text .globl VISenter, VISenterhalf
arch/sparc64/lib/blockops.S +7 -1
@@ -9,7 +9,13 @@ #include <asm/visasm.h> #include <asm/page.h> #include <asm/pgtable.h> -#include <asm/asm_offsets.h> + +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ #define TOUCH(reg0, reg1, reg2, reg3, reg4, reg5, reg6, reg7) \ fmovd %reg0, %f48; fmovd %reg1, %f50; \
arch/sparc64/lib/checksum.S +7 -1
@@ -18,7 +18,13 @@ #include <asm/ptrace.h> #include <asm/asi.h> #include <asm/page.h> -#include <asm/asm_offsets.h> + +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ /* The problem with the "add with carry" instructions on Ultra * are two fold. Firstly, they cannot pair with jack shit,
arch/sparc64/math-emu/Makefile.in +8 -0
@@ -0,0 +1,8 @@ +# +# Makefile for the sparc64 FPU instruction emulation. +# + +objlink(math-emu.o math.o) +select(math-emu.o) + +extra_cflags_all($(src_includelist /include/math-emu) -w)
arch/sparc64/mm/Makefile.in +8 -0
@@ -0,0 +1,8 @@ +# +# Makefile for the linux sparc64-specific parts of the memory manager. +# + +objlink(mm.o ultra.o fault.o init.o generic.o extable.o modutil.o) +select(mm.o) + +uses_asm_offsets(ultra.o)
arch/sparc64/mm/ultra.S +7 -0
@@ -11,6 +11,13 @@ #include <asm/spitfire.h> #include <asm/mmu_context.h> +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ + /* Basically, all this madness has to do with the * fact that Cheetah does not support IMMU flushes * out of the secondary context. Someone needs to
arch/sparc64/prom/Makefile.in +8 -0
@@ -0,0 +1,8 @@ +# +# Makefile for the Sun Boot PROM interface library under Linux. +# + +objlink(promlib.a bootstr.o devops.o init.o memory.o misc.o tree.o + console.o printf.o p1275.o map.o) + +select(promlib.a)
arch/sparc64/solaris/Makefile.in +10 -0
@@ -0,0 +1,10 @@ +# +# Makefile for the linux Solaris binary compatibility. +# + +objlink(solaris.o entry64.o fs.o misc.o signal.o systbl.o socket.o ioctl.o + ipc.o socksys.o timod.o) + +select(CONFIG_SOLARIS_EMUL solaris.o) + +uses_asm_offsets(entry64.o)
arch/sparc64/solaris/entry64.S +7 -0
@@ -17,6 +17,13 @@ #include <asm/pgtable.h> #include <asm/processor.h> +#include <linux/config.h> /* Remove this line after kbuild 2.5 is in */ +#ifdef CONFIG_KBUILD_2_5 /* Remove this line after kbuild 2.5 is in */ +#include <asm-offsets.h> /* This is all that is required for kbuild 2.5 */ +#else /* Remove this line after kbuild 2.5 is in */ +#include <asm/asm_offsets.h> /* Remove this line after kbuild 2.5 is in */ +#endif /* Remove this line after kbuild 2.5 is in */ + #include "conv.h" #define NR_SYSCALLS 256
arch/sparc64/vmlinux.lds.S +80 -0
80 lines not on this page · raw message
include/asm-sparc64/processor.h +4 -0
@@ -307,6 +307,10 @@#define cpu_relax () udelay(1 + smp_processor_id()) +#ifdef CONFIG_KBUILD_2_5 +#define AOFF_task_fpregs ((sizeof(struct task_struct) + (64 - 1)) & ~(64 - 1)) +#endif +#endif /* __KERNEL__ */ #endif /* !(__ASSEMBLY__) */
include/asm-sparc64/ptrace.h +3 -0
@@ -111,7 +111,10 @@#define STACKFRAME32_SZ 0x60#define REGWIN32_SZ 0x40 +#include <linux/config.h> +#ifndef CONFIG_KBUILD_2_5 #include <asm/asm_offsets.h> +#endif /* CONFIG_KBUILD_2_5 */ #endif #ifdef __KERNEL__
include/asm-sparc64/system.h +2 -0
@@ -5,7 +5,9 @@#include <linux/config.h> #include <asm/ptrace.h> #include <asm/processor.h> +#ifndef CONFIG_KBUILD_2_5 #include <asm/asm_offsets.h> +#endif #include <asm/visasm.h> #ifndef __ASSEMBLY__
include/asm-sparc64/ttable.h +2 -0
@@ -3,7 +3,9 @@#define _SPARC64_TTABLE_H#include <linux/config.h> +#ifndef CONFIG_KBUILD_2_5 #include <asm/asm_offsets.h> +#endif #include <asm/utrap.h> #define BOOT_KERNEL b sparc64_boot; nop; nop; nop; nop; nop; nop; nop;
include/asm-sparc64/visasm.h +5 -2
@@ -10,8 +10,11 @@#include <asm/pstate.h> #include <asm/ptrace.h> -#define AOFF_task_fpregs (((ASIZ_task) + (64 - 1)) & ~(64 - 1)) - +#include <linux/config.h> +#ifndef CONFIG_KBUILD_2_5 +#define AOFF_task_fpregs (((ASIZ_task) + (64 - 1)) & ~(64 - 1)) +#endif +/* Clobbers %o5, %g1, %g2, %g3, %g7, %icc, %xcc */ #define VISEntry \
scripts/Makefile-2.5 +3 -2
@@ -736,9 +736,10 @@ @( \ echo ""; \ echo "source \"arch/i386/boot/rules-2.5.cml\""; \ + echo "source \"arch/sparc64/boot/rules-2.5.cml\""; \ echo ""; \ - echo "derive VMLINUX from VMLINUX_X86"; \ - echo "derive VMLINUZ from VMLINUZ_X86"; \ + echo "derive VMLINUX from VMLINUX_X86 or VMLINUX_SPARC64"; \ + echo "derive VMLINUZ from VMLINUZ_X86 or VMLINUZ_SPARC64"; \ echo "derive BZIMAGE from BZIMAGE_X86"; \ echo "derive ZIMAGE from ZIMAGE_X86"; \ echo "derive VMLINUX_SREC from n"; \
Quoted 5 lines · Thomas Duffy
Ok, with core-3, now kbuild 2.5 v2.0 works on sparc64. There was one typo in one sparc64 Makefile.in from 1.12. Attached is the patch to fix this.
Also attached is the full kbuild 2.0 patch for sparc64 2.4.18 tree.
Thanks Tom. Uploaded as
http://prdownloads.sourceforge.net/kbuild/kbuild-2.5-sparc64-2.4.18-1.bz2
I will get 2.5.8-pre2 working and upload that then wait for a couple of days to see if any other arch maintainers have kbuild 2.5 patches. Then it will be time for Release 2.1 which will be a candidate to go to Linus.
New core and common code for kbuild 2.5 is available in
http://sourceforge.net/project/showfiles.php?group_id=18813&release_id=83065
Changes from core-3 to core-4.
GNUism removal.
WISH is exposed in case your wish binary is not in /usr/bin/wish. awk changed to $(AWK) throughout.
PP_variables added to expose headers and compiler flags that might be different on on non-Linux build platforms.
Force the use of KBUILD_SHELL instead of relying on a working build platform shell.
Drop back to getopt if getopt_long is not available on the build platform, in which case only the single character command flags are available.
Documentation updates.
*** kbuild 2.5-core-4 runs on Solaris using gcc, gmake, gawk. ***
Would any brave (or foolhardy) person like to run kbuild 2.5 under Cygwin or other build platforms?
Changes from common-2.4.18-2 to common-2.4.18-3.
Yet more aic7xxx problems :(
Documentation updates.
Correct fencepost error in scripts/tkparse.
Changes from common-2.4.19-pre6-1 to common-2.4.19-pre6-2.
As for common-2.4.18-2 -> 3.
Updates for kbuild 2.5 at
http://sourceforge.net/project/showfiles.php?group_id=18813
I made the mistake of use the sourceforge fast release system. Turns out it creates new releases for each file so there are multiple 'Release 2.0' headings. Ignore that, they are all part of Release 2.0.
kbuild-2.5-core-5.bz2. Changes from core-4 to core-5.
Split config immediately after make *config instead of as a side effect of the next target. Cleaner rules, fewer special cases. Add include/sound on include list.
New command 'select_elsewhere()'. A complete kludge to work around the crc32.o problem in 2.5 kernels. Selection of CONFIG_CRC32 should really be done in CML but CML1 cannot cope, so add a kbuild kludge to overcome the incomplete CML data.
Fix a bug where cached timestamps prevented the detection of some config changes.
kbuild-2.5-common-2.4.18-4.bz2. Changes from common-2.4.18-3 to common-2.4.18-4.
DocBook tweaks.
Add dummy dep rule for people who forget that make dep is not required.
New - support for 2.5 kernels, starting with 2.5.8-pre3. i386 only for now, ia64 to follow.
kbuild-2.5-common-2.5.8-pre3-1.bz2.
Built from scratch, there was too much divergence between 2.4.18 and 2.5.8-pre3 Makefiles. The result was cross checked against Peter Samuelson's patch for 2.5.6pre1, for which much thanks.
kbuild-2.5-i386-2.5.8-pre3-1.bz2
Mainly from i386-2.4.18-1, with updates for i386-2.5.8-pre3.
TODO:
Add config help to common-2.5.8-pre3-1. I could not decide where to put the config help in 2.5 so I left it until -2.
Sync common-2.4.19-pre* with common-2.4.18-<n>. Will be done when next 2.4.19-pre* kernel comes out.
Add 2.4.18-ia64-020410 support. Already supports 2.4.18-ia64-020226.
Add 2.5.8-pre3-ia64-020411 support.
Wait for other arch maintainers to roll patches against kernel 2.5.
Create Release 2.1 with the latest version of each kernel and arch branch.
See how stable release 2.1 is then contact Linus.
Quoted 3 lines · Keith Owens
Updates for kbuild 2.5 at
http://sourceforge.net/project/showfiles.php?group_id=18813
kbuild-2.5-i386-2.5.8-pre3-1.bz2
i386-2.5.8-pre3-1 was missing this bit, against i386-2.5.8-pre3-1. Apply this patch or use kbuild-2.5-i386-2.5.8-pre3-2.bz2.
arch/i386/kernel/Makefile.in +6 -0
@@ -27,5 +27,11 @@ # uses_asm_offsets(entry.o) +# "Unterminated character constants", due to mismatched ' in comments +extra_aflags(entry.o -traditional) extra_aflags(head.o -traditional) extra_aflags(trampoline.o -traditional) + +extra_cflags(acpi.o $(fixme_acpi_includes)) +extra_cflags(pci-irq.o $(fixme_acpi_includes)) +extra_cflags(setup.o $(fixme_acpi_includes))