CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Added code to override the user@host string displayed during boot and in /proc/versio...
authorJose V Beneyto <sepen@crux.nu>
Wed, 24 Oct 2012 14:21:15 +0000 (14:21 +0000)
committerJose V Beneyto <sepen@crux.nu>
Wed, 24 Oct 2012 14:21:15 +0000 (14:21 +0000)
Makefile

index 091c8fc873bf20b9651db6fcfa8ce97389c1fea5..d512534c40efb4de6d8592d72c84702863b39fd6 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 = 2.6.25-omap850_20110407
 
@@ -21,10 +21,11 @@ distclean: clean image-distclean modules-distclean map-distclean
 $(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)