Skip to contentSkip to conversation

kbuild 2.5 is ready for inclusion in the 2.5 kernel - take 3

DISCUSSION Mike Galbraith 5 participants 6 messages May 18, 2002 – May 20, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines

Someone said here on the list a few months ago that "make bzlilo" was replaced by "make install" and that it was necessary to configure the "install" option's behavior.

Someone said? Your opinion on this subject just lost all of it's value.

-Mike

Quoted 24 lines

David Lang <[email protected]> on 05/18/2002 12:23:10 AM

To: Wayne Brown/Corporate/Altec@Altec
cc: [email protected]

Subject: Re: kbuild 2.5 is ready for inclusion in the 2.5 kernel - take 3

Wayne, the only change (other then better, faster functions) is the elimination of steps.

if it will satisfy you you can continue to do a make mproper and make dep and just ignore the 'no target found' messages.

David Lang

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
Quoted 3 lines · On Sat, May 18, 2002 at 12:32:25PM -0500, [email protected] wrote:

I never expected everyone to abandon their own needs to satisfy mine. It would be nice if they tried to accomodate my needs while satisfying their own, but I didn't expect that either.

IIRC, Kbuild-2.5 already silently accepts all of the old kbuild-2.4 commands without problems.

As long as you end up running "make install" the rest of the old commands will be ignored. You can go on with all of the old commands, if you want without any trouble. This will allow you to use the same commands with kbuild-2.4 and kbuild-2.5, in case you decide to switch between both kernels and want to use the same commands.

Also kbuild-2.5 does have features that allow you to call scripts from "make install", but it's not mandatory.

Kieth, can you confirm that all of the old kbuild-2.4 commands have been wrapped in kbuild-2.5 commands?

Thanks,

Mike

#2 lore raw
Quoted 6 lines · Mike Fedyk
Quoted 3 lines · On Sat, May 18, 2002 at 12:32:25PM -0500, [email protected] wrote:

I never expected everyone to abandon their own needs to satisfy mine. It would be nice if they tried to accomodate my needs while satisfying their own, but I didn't expect that either.

Quoted 6 lines

IIRC, Kbuild-2.5 already silently accepts all of the old kbuild-2.4 commands without problems.

As long as you end up running "make install" the rest of the old commands will be ignored. You can go on with all of the old commands, if you want without any trouble.

Well, not everybody trusts "make install" to do something useful. I'd do something like this:

make clean
bzip2 -dc ../foo.bz2 | patch -E -s -p1
make menuconfig
time script build-log
make vmlinux && make modules && make modules_install && exit cp vmlinux /boot/vmlinux-2.5.16
cp System.map /boot/System.map-2.5.16
cp .config /boot/config-2.5.16
sync
su -
joe /etc/yaboot.conf
sync
exit

#5 lore raw
In reply to Mike Fedyk
Quoted 2 lines · Mike Fedyk

Kieth, can you confirm that all of the old kbuild-2.4 commands have been wrapped in kbuild-2.5 commands?

make *config - same
make dep - kbuild 2.5 says 'nothing to do'.
make [b]zImage - Replaced by 'installable', with the kernel type
specified in .config.
make modules - Replaced by 'installable'.
make bzlilo - All install targets have been subsumed by 'install'.

'make installable' is the default target if nothing else is specified. kbuild 2.5 moves the type of kernel to build into .config, it is no longer specified on the command line. This makes it even easier to build from a previous kernel, copy .config and

make -j defconfig installable && sudo make -j install

There is no need for separate passes for kernel and modules. Building kernel and modules separately has always been a potential source of human error, kbuild 2.5 delivers a complete and accurate set of installable files. Because kbuild 2.5 only rebuilds what is necessary, collapsing the two passes into one actually saves build time.

'make install' uses .config entries to determine what to install, where to install it, whether or not you want to install System.map or .config and where they are installed. Again, this makes it much easier to reuse a previous config. It also makes life easier for people doing cross compiles, set one config variable to a directory and everything is installed relative to that directory, instead of relative to /.

Another config entry specifies an install script to be run after install. You are no longer restricted to a hard coded script name. kbuild 2.5 deliberately does not include any interfaces to lilo, grub, syslinux, etc., nor to apt, rpm, tarballs etc., they are all handled by the post-install script. Sample scripts are provided, if you don't like them you can modify to suit or write your own post-install scripts. This is more flexible than "everything goes through /sbin/install".

#3 lore raw
In reply to Albert D. Cahalan
Quoted 16 lines · Albert D. Cahalan

Well, not everybody trusts "make install" to do something useful. I'd do something like this:

make clean
bzip2 -dc ../foo.bz2 | patch -E -s -p1
make menuconfig
time script build-log
make vmlinux && make modules && make modules_install && exit cp vmlinux /boot/vmlinux-2.5.16
cp System.map /boot/System.map-2.5.16
cp .config /boot/config-2.5.16
sync
su -
joe /etc/yaboot.conf
sync
exit

Then you will be pleased to hear that kbuild 2.5 supports precisely that model. It has an install menu which lets you specify the name of the install kernel, whether to install System.map and .config, and the names to install them under. It even has an config entry for a post-install script.

After setting up these variables (only needs to be done once)

CONFIG_INSTALL_KERNEL_NAME=/boot/vmlinux-KERNELRELEASE CONFIG_INSTALL_SYSTEM_MAP=y CONFIG_INSTALL_SYSTEM_MAP_NAME=/boot/System.map-KERNELRELEASE CONFIG_INSTALL_CONFIG=y CONFIG_INSTALL_CONFIG_NAME=/boot/config-KERNELRELEASE CONFIG_INSTALL_SCRIPT=y CONFIG_INSTALL_SCRIPT_NAME=joe /etc/yaboot.conf

Your build process collapes to

make -j defconfig installable && sudo make install

It does not get any simpler than that!

#4 lore raw
In reply to Albert D. Cahalan
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"albert" == Albert D Cahalan <[email protected]> writes:

Quoted 6 lines · albert> Mike Fedyk writes:
Quoted 6 lines · On Sat, May 18, 2002 at 12:32:25PM -0500, [email protected] wrote:
Quoted 4 lines

I never expected everyone to abandon their own needs to satisfy mine. It would be nice if they tried to accomodate my needs while satisfying their own, but I didn't expect that either.

Quoted 6 lines
Quoted 6 lines

IIRC, Kbuild-2.5 already silently accepts all of the old kbuild-2.4 commands without problems.

As long as you end up running "make install" the rest of the old commands will be ignored. You can go on with all of the old commands, if you want without any trouble.

albert> Well, not everybody trusts "make install" to do something useful. albert> I'd do something like this:

albert> make clean
albert> bzip2 -dc ../foo.bz2 | patch -E -s -p1

albert> make menuconfig
albert> time script build-log
albert> make vmlinux && make modules && make modules_install && exit

this is standard

albert> cp vmlinux /boot/vmlinux-2.5.16
albert> cp System.map /boot/System.map-2.5.16
albert> cp .config /boot/config-2.5.16
albert> sync
albert> su -
albert> joe /etc/yaboot.conf
albert> sync
albert> exit

You can put that thing in /sbin/install and actual build system will do what you want. Here we modify grub || lilo in x86 in that script, it is not difficult to automatize.

Later, Juan.

Signature · 2 lines
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy