pkgsrc-wip/linux-kernel/Makefile
Jeremy C. Reed f7d489569c Add MESSAGE suggesting grub or lilo update. And to mention
that multiple Linux kernel packages can be installed at same time.

Change PKGNAME scheme to allow it to be installed multiple times
simultaneously.
Use PKG_PRESERVE so the Linux kernel can't get accidently deinstalled.

Add a variable to choose where to install (but not used yet,
due to some problems when LOCALBASE is /).

Set NO_MTREE.

Make sure the boot and lib/modules directories are created.

Increased kernel version to 2.6.6. Sorry changes no listed here.
See kernel.org for change logs.

Honor the USE_INET6 so CONFIG_IPV6 is set.

For default configurations (for modules, etc.) add
change CONFIG_DRM_I830= to module and add:
CONFIG_USB_OHCI_HCD=y
CONFIG_SND_USB_AUDIO=m
CONFIG_USB_AUDIO=m
2004-06-12 22:44:24 +00:00

49 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2004/06/12 22:44:24 jeremy-c-reed Exp $
.include "Makefile.common"
# The naming scheme allows it to be installed multiple times simultaneously
PKGNAME= linux-kernel${LINUX_VERSION}-${LINUX_VERSION}
COMMENT= The Linux kernel
BUILD_DEPENDS+= linux-module-init-tools-[0-9]*:../../wip/linux-module-init-tools
# This means that old linux-modutils aren't available for other kernel
#BUILD_DEPENDS+= linux-modutils-[0-9]*:../../wip/linux-modutils
# Don't let the Linux kernel get accidently deinstalled.
# XXX todo: fix pkg_info to not be so noisy about this
# XXX maybe say "Package preserve option is set" or ...?
PKG_PRESERVE= # defined
.include "../../mk/bsd.prefs.mk"
# Location of where boot/ and lib/modules directories are located.
# XXX do not use this yet
LINUXBASE?= ${PREFIX}
# XXX can not set LOCALBASE because
# PREFIX is used in patch for depmod
# PKG_TOOLS_BIN is changed
#LOCALBASE= /
NO_MTREE= YES
PLIST_SUBST+= LINUXBASE=${LINUXBASE}
MESSAGE_SUBST+= PKGBASE=${PKGBASE}
MAKE_DIRS+= ${LINUXBASE}/lib/modules
MAKE_DIRS+= ${LINUXBASE}/boot
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} bzImage && \
${SETENV} ${MAKE_ENV} ${GMAKE} modules
do-install:
${INSTALL_DATA_DIR} ${LINUXBASE}/boot
${CP} ${WRKSRC}/arch/${LOWER_ARCH}/boot/bzImage \
${LINUXBASE}/boot/bzImage-${LINUX_VERSION}
${CP} ${WRKSRC}/System.map \
${LINUXBASE}/boot/System.map-${LINUX_VERSION}
${INSTALL_DATA} ${WRKSRC}/.config ${PREFIX}/boot/${PKGNAME}.config
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} modules_install
.include "../../mk/bsd.pkg.mk"