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

Keith Owens (kaos@ocs.com.au)
Mon, 20 May 2002 15:18:37 +1000


On Mon, 20 May 2002 01:09:36 -0400 (EDT),
"Albert D. Cahalan" <acahalan@cs.uml.edu> wrote:
>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!

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