Commit f3c28355 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Remove archdep

Since we don't do dependencies up front anymore, archdep does not make
too much sense anymore. It was mostly unused now anyway, move the
remaining users to the "prepare" target, which is exactly what is wanted:
Do some work before the actual build gets started.
parent 6f20a749
...@@ -330,18 +330,16 @@ scripts: ...@@ -330,18 +330,16 @@ scripts:
# The targets are still named depend / dep for traditional # The targets are still named depend / dep for traditional
# reasons, but the only thing we do here is generating # reasons, but the only thing we do here is generating
# the module version checksums. # the module version checksums.
# FIXME: For now, we are also calling "archdep" from here,
# which should be replaced by a more sensible solution.
.PHONY: depend dep $(patsubst %,_sfdep_%,$(SUBDIRS)) .PHONY: depend dep $(patsubst %,_sfdep_%,$(SUBDIRS))
depend dep: .hdepend depend dep: .hdepend
# .hdepend is our (misnomed) marker for whether we've run # .hdepend is our (misnomed) marker for whether we've run
# generated module versions and made archdep # generated module versions
.hdepend: $(if $(filter dep depend,$(MAKECMDGOALS)),FORCE) .hdepend: $(if $(filter dep depend,$(MAKECMDGOALS)),FORCE)
@$(MAKE) archdep include/linux/modversions.h @$(MAKE) include/linux/modversions.h
@touch $@ @touch $@
ifdef CONFIG_MODVERSIONS ifdef CONFIG_MODVERSIONS
......
...@@ -127,8 +127,6 @@ archmrproper: ...@@ -127,8 +127,6 @@ archmrproper:
rm -f arch/alpha/vmlinux.lds rm -f arch/alpha/vmlinux.lds
rm -f include/asm-alpha/asm_offsets.h rm -f include/asm-alpha/asm_offsets.h
archdep:
vmlinux: arch/alpha/vmlinux.lds vmlinux: arch/alpha/vmlinux.lds
arch/alpha/vmlinux.lds: arch/alpha/vmlinux.lds.in arch/alpha/vmlinux.lds: arch/alpha/vmlinux.lds.in
......
...@@ -65,6 +65,4 @@ __divlu.o: $(ev6)divide.S ...@@ -65,6 +65,4 @@ __divlu.o: $(ev6)divide.S
__remlu.o: $(ev6)divide.S __remlu.o: $(ev6)divide.S
$(CC) $(AFLAGS) -DREM -DINTSIZE -c -o __remlu.o $(ev6)divide.S $(CC) $(AFLAGS) -DREM -DINTSIZE -c -o __remlu.o $(ev6)divide.S
dep:
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
...@@ -125,7 +125,7 @@ zImage: compressed/vmlinux ...@@ -125,7 +125,7 @@ zImage: compressed/vmlinux
bootpImage: bootp/bootp bootpImage: bootp/bootp
$(OBJCOPY) -O binary -R .note -R .comment -S bootp/bootp $@ $(OBJCOPY) -O binary -R .note -R .comment -S bootp/bootp $@
compressed/vmlinux: $(TOPDIR)/vmlinux dep compressed/vmlinux: $(TOPDIR)/vmlinux
@$(MAKE) -C compressed vmlinux @$(MAKE) -C compressed vmlinux
bootp/bootp: zImage initrd bootp/bootp: zImage initrd
......
...@@ -100,5 +100,3 @@ archclean: ...@@ -100,5 +100,3 @@ archclean:
rm -rf $(LD_SCRIPT).tmp rm -rf $(LD_SCRIPT).tmp
archmrproper: archmrproper:
archdep:
...@@ -108,7 +108,7 @@ MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot ...@@ -108,7 +108,7 @@ MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
vmlinux: arch/i386/vmlinux.lds vmlinux: arch/i386/vmlinux.lds
.PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \ .PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \
clean archclean archmrproper archdep clean archclean archmrproper
zImage: vmlinux zImage: vmlinux
@$(MAKEBOOT) zImage @$(MAKEBOOT) zImage
...@@ -140,5 +140,3 @@ archclean: ...@@ -140,5 +140,3 @@ archclean:
@$(MAKEBOOT) clean @$(MAKEBOOT) clean
archmrproper: archmrproper:
archdep:
...@@ -127,7 +127,11 @@ archmrproper: ...@@ -127,7 +127,11 @@ archmrproper:
rm -f arch/$(ARCH)/vmlinux.lds rm -f arch/$(ARCH)/vmlinux.lds
@$(MAKE) -C arch/$(ARCH)/tools mrproper @$(MAKE) -C arch/$(ARCH)/tools mrproper
archdep:
bootpfile: bootpfile:
@$(MAKEBOOT) bootpfile @$(MAKEBOOT) bootpfile
prepare: $(TOPDIR)/include/asm-ia64/offsets.h
$(TOPDIR)/include/asm-ia64/offsets.h: include/asm include/linux/version.h \
include/config/MARKER
@$(MAKE) -C arch/$(ARCH)/tools $@
\ No newline at end of file
...@@ -9,7 +9,7 @@ mrproper: ...@@ -9,7 +9,7 @@ mrproper:
clean: clean:
rm -f print_offsets.s print_offsets offsets.h rm -f print_offsets.s print_offsets offsets.h
fastdep: offsets.h $(TARGET): offsets.h
@if ! cmp -s offsets.h ${TARGET}; then \ @if ! cmp -s offsets.h ${TARGET}; then \
echo -e "*** Updating ${TARGET}..."; \ echo -e "*** Updating ${TARGET}..."; \
cp offsets.h ${TARGET}; \ cp offsets.h ${TARGET}; \
......
...@@ -172,5 +172,3 @@ archclean: ...@@ -172,5 +172,3 @@ archclean:
rm -f arch/m68k/kernel/m68k_defs.h arch/m68k/kernel/m68k_defs.d rm -f arch/m68k/kernel/m68k_defs.h arch/m68k/kernel/m68k_defs.d
archmrproper: archmrproper:
archdep:
...@@ -308,5 +308,3 @@ archclean: ...@@ -308,5 +308,3 @@ archclean:
archmrproper: archmrproper:
@$(MAKEBOOT) mrproper @$(MAKEBOOT) mrproper
$(MAKE) -C arch/$(ARCH)/tools mrproper $(MAKE) -C arch/$(ARCH)/tools mrproper
archdep:
...@@ -176,5 +176,3 @@ archclean: ...@@ -176,5 +176,3 @@ archclean:
archmrproper: archmrproper:
@$(MAKEBOOT) mrproper @$(MAKEBOOT) mrproper
$(MAKE) -C arch/$(ARCH)/tools mrproper $(MAKE) -C arch/$(ARCH)/tools mrproper
archdep:
...@@ -78,5 +78,3 @@ install: ...@@ -78,5 +78,3 @@ install:
archclean: archclean:
archmrproper: archmrproper:
archdep:
...@@ -116,5 +116,3 @@ archclean: ...@@ -116,5 +116,3 @@ archclean:
@$(MAKEBOOT) clean @$(MAKEBOOT) clean
archmrproper: archmrproper:
archdep:
...@@ -66,5 +66,5 @@ archclean: ...@@ -66,5 +66,5 @@ archclean:
archmrproper: archmrproper:
archdep: prepare:
$(MAKEBOOT) dep $(MAKEBOOT) dep
...@@ -58,7 +58,5 @@ archclean: ...@@ -58,7 +58,5 @@ archclean:
archmrproper: archmrproper:
archdep:
install: vmlinux install: vmlinux
@$(MAKEBOOT) BOOTIMAGE=image install @$(MAKEBOOT) BOOTIMAGE=image install
...@@ -56,5 +56,3 @@ archclean: ...@@ -56,5 +56,3 @@ archclean:
$(MAKE) -C arch/$(ARCH)/kernel clean $(MAKE) -C arch/$(ARCH)/kernel clean
archmrproper: archmrproper:
archdep:
...@@ -94,5 +94,3 @@ archclean: ...@@ -94,5 +94,3 @@ archclean:
archmrproper: archmrproper:
rm -f arch/sh/vmlinux.lds rm -f arch/sh/vmlinux.lds
archdep:
...@@ -58,9 +58,9 @@ archclean: ...@@ -58,9 +58,9 @@ archclean:
archmrproper: archmrproper:
rm -f $(TOPDIR)/include/asm-sparc/asm_offsets.h rm -f $(TOPDIR)/include/asm-sparc/asm_offsets.h
archdep: check_asm prepare: check_asm
check_asm: include/linux/version.h check_asm: include/linux/version.h include/linux/asm include/config/MARKER
$(MAKE) -C arch/sparc/kernel check_asm $(MAKE) -C arch/sparc/kernel check_asm
tftpboot.img: tftpboot.img:
......
...@@ -85,7 +85,5 @@ archclean: ...@@ -85,7 +85,5 @@ archclean:
archmrproper: archmrproper:
archdep:
tftpboot.img: tftpboot.img:
$(MAKE) -C arch/sparc64/boot tftpboot.img $(MAKE) -C arch/sparc64/boot tftpboot.img
...@@ -18,6 +18,3 @@ tftpboot.img: piggyback $(TOPDIR)/vmlinux $(ROOT_IMG) ...@@ -18,6 +18,3 @@ tftpboot.img: piggyback $(TOPDIR)/vmlinux $(ROOT_IMG)
piggyback: piggyback.c piggyback: piggyback.c
$(HOSTCC) $(HOSTCFLAGS) -o piggyback piggyback.c $(HOSTCC) $(HOSTCFLAGS) -o piggyback piggyback.c
dep:
...@@ -76,7 +76,7 @@ MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot ...@@ -76,7 +76,7 @@ MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
vmlinux: arch/x86_64/vmlinux.lds vmlinux: arch/x86_64/vmlinux.lds
.PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \ .PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \
clean archclean archmrproper archdep checkoffset clean archclean archmrproper
bzImage: vmlinux bzImage: vmlinux
@$(MAKEBOOT) bzImage @$(MAKEBOOT) bzImage
...@@ -101,9 +101,6 @@ archclean: ...@@ -101,9 +101,6 @@ archclean:
archmrproper: archmrproper:
archdep:
@$(MAKEBOOT) dep
prepare: include/asm-$(ARCH)/offset.h prepare: include/asm-$(ARCH)/offset.h
......
...@@ -100,12 +100,8 @@ bsetup.o: bsetup.s ...@@ -100,12 +100,8 @@ bsetup.o: bsetup.s
bsetup.s: setup.S video.S Makefile $(BOOT_INCL) $(TOPDIR)/include/linux/version.h $(TOPDIR)/include/linux/compile.h bsetup.s: setup.S video.S Makefile $(BOOT_INCL) $(TOPDIR)/include/linux/version.h $(TOPDIR)/include/linux/compile.h
$(IA32_CPP) $(CPPFLAGS) -D__BIG_KERNEL__ -D__ASSEMBLY__ -traditional $(SVGA_MODE) $(RAMDISK) $< -o $@ $(IA32_CPP) $(CPPFLAGS) -D__BIG_KERNEL__ -D__ASSEMBLY__ -traditional $(SVGA_MODE) $(RAMDISK) $< -o $@
dep:
clean: clean:
rm -f tools/build rm -f tools/build
rm -f setup bootsect zImage compressed/vmlinux.out rm -f setup bootsect zImage compressed/vmlinux.out
rm -f bsetup bbootsect bzImage compressed/bvmlinux.out rm -f bsetup bbootsect bzImage compressed/bvmlinux.out
@$(MAKE) -C compressed clean @$(MAKE) -C compressed clean
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment