Skip to contentSkip to conversation

Default target

sparc Pete Zaitcev 2 participants 2 messages Mar 31, 2003 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

Apparently, Sam changed his mind about the "makeboot", too. In 2.5.66, only s390, sparc64, and ppc64 still have it.

arch/sparc/boot/Makefile +0 -4
diff -urN -X dontdiff linux-2.5.66/arch/sparc/boot/Makefile linux-2.5.66-sparc/arch/sparc/boot/Makefile
@@ -32,7 +32,3 @@
 
 $(obj)/btfix.s: $(obj)/btfixupprep vmlinux FORCE
 	$(call if_changed,btfix)
-
-archhelp:
-	@echo '* image		- kernel image ($(obj)/image)'
-	@echo '  tftpboot.img	- image prepared for tftp'
arch/sparc/Makefile +12 -3
diff -urN -X dontdiff linux-2.5.66/arch/sparc/Makefile linux-2.5.66-sparc/arch/sparc/Makefile
@@ -54,13 +54,16 @@
 LIBS_Y		:= $(patsubst %/, %/lib.a, $(libs-y))
 export INIT_Y CORE_Y DRIVERS_Y NET_Y LIBS_Y HEAD_Y
 
-makeboot =$(Q)$(MAKE) -f scripts/Makefile.build obj=arch/$(ARCH)/boot $(1)
+# Default target
+all: image
+
+boot := arch/sparc/boot
 
 image tftpboot.img: vmlinux
-	$(call makeboot,arch/sparc/boot/$@)
+	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 
 archclean:
-	$(Q)$(MAKE) -f scripts/Makefile.clean obj=arch/$(ARCH)/boot
+	$(Q)$(MAKE) $(clean)=$(boot)
 
 prepare: include/asm-$(ARCH)/asm_offsets.h
 
@@ -72,3 +75,9 @@
 
 CLEAN_FILES +=	include/asm-$(ARCH)/asm_offsets.h	\
 		arch/$(ARCH)/kernel/asm-offsets.s
+
+# Don't use tabs in echo arguments.
+define archhelp
+  echo  '* image        - kernel image ($(boot)/image)'
+  echo  '  tftpboot.img - image prepared for tftp'
+endef
#1 lore raw

From: Pete Zaitcev <[email protected]>
Date: Mon, 31 Mar 2003 16:06:33 -0500

Apparently, Sam changed his mind about the "makeboot", too. In 2.5.66, only s390, sparc64, and ppc64 still have it.

Well, since your previous sparc Makefile patches are in the tree already, this patch has no chance to apply.