Author: sip Date: 2006-02-25 22:18:59 +0100 (Sat, 25 Feb 2006) New Revision: 838 Modified: crux-2.2/Makefile Log: install and build kernel during chroot Modified: crux-2.2/Makefile =================================================================== --- crux-2.2/Makefile 2006-02-25 19:42:48 UTC (rev 837) +++ crux-2.2/Makefile 2006-02-25 21:18:59 UTC (rev 838) @@ -106,6 +106,17 @@ pkgadd -r $(FAKE_ROOT_DIR) $$PACKAGE; \ done; \ done + @echo "Installing kernel" + @mkdir -p $(FAKE_ROOT_DIR)/usr/src + @tar -C $(FAKE_ROOT_DIR)/usr/src -xjf kernel/linux-$(KERNEL_VERSION).tar.bz2 + for FILE in $(KERNEL_PATCHES); do \ + cp kernel/$$FILE $(FAKE_ROOT_DIR)/usr/src/linux-$(KERNEL_VERSION); \ + cd $(FAKE_ROOT_DIR)/usr/src/linux-$(KERNEL_VERSION) && patch -p1 < $$FILE; \ + done + @ln -s $(FAKE_ROOT_DIR)/usr/src/linux-$(KERNEL_VERSION) $(FAKE_ROOT_DIR)/usr/src/linux + @cp -f kernel/linux-$(KERNEL_VERSION).config $(FAKE_ROOT_DIR)/usr/src/linux-$(KERNEL_VERSION)/.config + @make -C $(FAKE_ROOT_DIR)/usr/src/linux-$(KERNEL_VERSION) oldconfig + @make -C $(FAKE_ROOT_DIR)/usr/src/linux-$(KERNEL_VERSION) @echo "Mounting /dev on $(FAKE_ROOT_DIR)/dev" @mount --bind /dev $(FAKE_ROOT_DIR)/dev @echo "Mounting /proc on $(FAKE_ROOT_DIR)/proc"