TARGET = arm-crux-linux-gnueabi
-TOPDIR = $(shell pwd)
+PWD = $(shell pwd)
WORK = $(PWD)/work
-CROSSTOOLS = $(TOPDIR)/../../toolchain/crosstools
+CROSSTOOLS = $(PWD)/../../toolchain/crosstools
KERNEL_VERSION = 2.6.25-omap850_20110407
$(WORK)/linux-$(KERNEL_VERSION).tar.bz2:
wget -P $(WORK) http://crux-arm.nu/files/distfiles/omap850/linux-$(KERNEL_VERSION).tar.bz2
-$(WORK)/linux-$(KERNEL_VERSION): $(TOPDIR)/config-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION).tar.bz2 $(WORK)/linux-$(KERNEL_VERSION)-make3.82.patch
+$(WORK)/linux-$(KERNEL_VERSION): $(PWD)/config-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION).tar.bz2 $(WORK)/linux-$(KERNEL_VERSION)-make3.82.patch
tar -C $(WORK) -xvjf $(WORK)/linux-$(KERNEL_VERSION).tar.bz2
- cp -v $(TOPDIR)/config-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION)/.config
+ cp -v $(PWD)/config-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION)/.config
patch -p0 -i $(WORK)/linux-$(KERNEL_VERSION)-make3.82.patch
+ sed -e 's|`whoami`|devel|' -e 's|`hostname .*`|crux-arm.nu|' -i $(WORK)/linux-$(KERNEL_VERSION)/scripts/mkcompile_h
touch $(WORK)/linux-$(KERNEL_VERSION)
$(WORK)/zImage-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION)