TARGET = arm-crux-linux-gnueabi
-TOPDIR = $(shell pwd)
+PWD = $(shell pwd)
WORK = $(PWD)/work
-CROSSTOOLS = $(TOPDIR)/../../toolchain/crosstools
+CROSSTOOLS = $(PWD)/../../toolchain/crosstools
KERNEL_VERSION = 3.5.4
sed -e 's|`whoami`|devel|' -e 's|`hostname .*`|crux-arm.nu|' -i $(WORK)/linux-$(KERNEL_VERSION)/scripts/mkcompile_h
cd $(WORK)/linux-$(KERNEL_VERSION) && \
make mrproper && \
- cp -v $(TOPDIR)/config-$(KERNEL_VERSION) .config && \
+ cp -v $(PWD)/config-$(KERNEL_VERSION) .config && \
touch $(WORK)/linux-$(KERNEL_VERSION)
$(WORK)/zImage-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION)