[Frugalware-darcs] setup-current: multiarch kernel compilation and optimalization

VMiklos mamajom at axelero.hu
Thu Mar 16 17:52:11 CET 2006


[multiarch kernel compilation and optimalization
VMiklos <mamajom at axelero.hu>**20050621181416] {
hunk ./Makefile 44
-CARCH=i686
-export CFLAGS = -march=$(CARCH) -O2 -pipe
+CARCH ?= $(shell arch)
+ifeq ($(CARCH),i686)
+	KARCH ?= i386
+endif
+ifeq ($(CARCH),x86_64)
+	MARCH ?= k8
+endif
+MARCH ?= $(CARCH)
+KARCH ?= $(CARCH)
+export CFLAGS = -march=$(MARCH) -O2 -pipe
hunk ./Makefile 261
-	cp arch/i386/boot/bzImage \
+	cp arch/$(KARCH)/boot/bzImage \
}


More information about the Frugalware-darcs mailing list