Author: ward Date: 2007-09-12 21:50:00 +0200 (Wed, 12 Sep 2007) New Revision: 30
Added: buildrom-devel/packages/kernel/m57sli-kernel.mk Modified: buildrom-devel/packages/kernel/kernel.inc Log:
1. Add support to automatically download the Linux Tiny patches from
2. Add the makefile for the m57sli kernel.
Signed-off-by: Ward Vandewege ward@gnu.org Acked-by: Ronald G. Minnich rminnich@gmail.com
Modified: buildrom-devel/packages/kernel/kernel.inc =================================================================== --- buildrom-devel/packages/kernel/kernel.inc 2007-09-12 19:19:38 UTC (rev 29) +++ buildrom-devel/packages/kernel/kernel.inc 2007-09-12 19:50:00 UTC (rev 30) @@ -21,9 +21,20 @@ @ mkdir -p $(KERNEL_DIR) @ echo "Unpacking kernel..." @ tar -C $(KERNEL_DIR) -jxf $(SOURCE_DIR)/$(KERNEL_SOURCE) - @ touch $@ + @ touch $@
+$(KERNEL_STAMP_DIR)/.unpacked-tiny: $(SOURCE_DIR)/$(TINY_SOURCE) + @ mkdir -p $(KERNEL_DIR) + @ mkdir -p $(KERNEL_DIR)/tiny + @ echo "Unpacking tiny patches..." + @ tar -C $(KERNEL_DIR)/tiny -xzf $(SOURCE_DIR)/$(TINY_SOURCE) + @ touch $@ + +ifneq ($(TINY_SOURCE),) +$(KERNEL_STAMP_DIR)/.patched: $(KERNEL_STAMP_DIR)/.unpacked $(KERNEL_STAMP_DIR)/.unpacked-tiny +else $(KERNEL_STAMP_DIR)/.patched: $(KERNEL_STAMP_DIR)/.unpacked +endif @ echo "Patching kernel..." @ $(BIN_DIR)/doquilt.sh $(KERNEL_SRC_DIR) $(KERNEL_PATCHES) @ touch $@
Added: buildrom-devel/packages/kernel/m57sli-kernel.mk =================================================================== --- buildrom-devel/packages/kernel/m57sli-kernel.mk (rev 0) +++ buildrom-devel/packages/kernel/m57sli-kernel.mk 2007-09-12 19:50:00 UTC (rev 30) @@ -0,0 +1,25 @@ +# Build file for the Gigabyte M57SLI-S4 LAB kernel + +KERNEL_URL=http://kernel.org/pub/linux/kernel/v2.6/ +KERNEL_SOURCE=linux-$(KERNEL_VERSION).tar.bz2 +KERNEL_CONFIG=$(PACKAGE_DIR)/kernel/conf/defconfig-m57sli + +TINY_URL=http://elinux.org/images/0/0e/ +TINY_SOURCE=Tiny-quilt-2.6.22.1-1.tar.gz +TINY_DIR=$(KERNEL_DIR)/tiny/patches + +KERNEL_PATCHES += $(TINY_DIR) + +$(SOURCE_DIR)/$(KERNEL_SOURCE): + @ mkdir -p $(SOURCE_DIR) + @ wget -P $(SOURCE_DIR) $(KERNEL_URL)/$(KERNEL_SOURCE) + +$(SOURCE_DIR)/$(TINY_SOURCE): + @ mkdir -p $(SOURCE_DIR) + @ wget -P $(SOURCE_DIR) $(TINY_URL)/$(TINY_SOURCE) + +include $(PACKAGE_DIR)/kernel/kernel.inc + +kernel: generic-kernel +kernel-clean: generic-kernel-clean +kernel-distclean: generic-kernel-distclean