CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed issue with TOPDIR and PWD
authorJose V Beneyto <sepen@crux.nu>
Fri, 19 Oct 2012 14:25:40 +0000 (14:25 +0000)
committerJose V Beneyto <sepen@crux.nu>
Fri, 19 Oct 2012 14:25:40 +0000 (14:25 +0000)
Makefile

index 78bf31d866e0d32fb3d80be390aa2e3b277fd9ae..4a0e5d6dc842691df3ef9f1133af69ddb1c27898 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,9 @@
 
 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
 
@@ -26,7 +26,7 @@ $(WORK)/linux-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION).tar.bz2 config-
        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)