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:
# The targets are still named depend / dep for traditional
# reasons, but the only thing we do here is generating
# 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))
depend dep: .hdepend
# .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)
@$(MAKE) archdep include/linux/modversions.h
@$(MAKE) include/linux/modversions.h
@touch $@
ifdef CONFIG_MODVERSIONS
......
......@@ -127,8 +127,6 @@ archmrproper:
rm -f arch/alpha/vmlinux.lds
rm -f include/asm-alpha/asm_offsets.h
archdep:
vmlinux: arch/alpha/vmlinux.lds
arch/alpha/vmlinux.lds: arch/alpha/vmlinux.lds.in
......
......@@ -65,6 +65,4 @@ __divlu.o: $(ev6)divide.S
__remlu.o: $(ev6)divide.S
$(CC) $(AFLAGS) -DREM -DINTSIZE -c -o __remlu.o $(ev6)divide.S
dep:
include $(TOPDIR)/Rules.make
......@@ -125,7 +125,7 @@ zImage: compressed/vmlinux
bootpImage: 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
bootp/bootp: zImage initrd
......
......@@ -100,5 +100,3 @@ archclean:
rm -rf $(LD_SCRIPT).tmp
archmrproper:
archdep:
......@@ -108,7 +108,7 @@ MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
vmlinux: arch/i386/vmlinux.lds
.PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \
clean archclean archmrproper archdep
clean archclean archmrproper
zImage: vmlinux
@$(MAKEBOOT) zImage
......@@ -140,5 +140,3 @@ archclean:
@$(MAKEBOOT) clean
archmrproper:
archdep:
......@@ -127,7 +127,11 @@ archmrproper:
rm -f arch/$(ARCH)/vmlinux.lds
@$(MAKE) -C arch/$(ARCH)/tools mrproper
archdep:
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:
clean:
rm -f print_offsets.s print_offsets offsets.h
fastdep: offsets.h
$(TARGET): offsets.h
@if ! cmp -s offsets.h ${TARGET}; then \
echo -e "*** Updating ${TARGET}..."; \
cp offsets.h ${TARGET}; \
......
......@@ -172,5 +172,3 @@ archclean:
rm -f arch/m68k/kernel/m68k_defs.h arch/m68k/kernel/m68k_defs.d
archmrproper:
archdep:
......@@ -308,5 +308,3 @@ archclean:
archmrproper:
@$(MAKEBOOT) mrproper
$(MAKE) -C arch/$(ARCH)/tools mrproper
archdep:
......@@ -176,5 +176,3 @@ archclean:
archmrproper:
@$(MAKEBOOT) mrproper
$(MAKE) -C arch/$(ARCH)/tools mrproper
archdep:
......@@ -78,5 +78,3 @@ install:
archclean:
archmrproper:
archdep:
......@@ -116,5 +116,3 @@ archclean:
@$(MAKEBOOT) clean
archmrproper:
archdep:
......@@ -66,5 +66,5 @@ archclean:
archmrproper:
archdep:
prepare:
$(MAKEBOOT) dep
......@@ -58,7 +58,5 @@ archclean:
archmrproper:
archdep:
install: vmlinux
@$(MAKEBOOT) BOOTIMAGE=image install
......@@ -56,5 +56,3 @@ archclean:
$(MAKE) -C arch/$(ARCH)/kernel clean
archmrproper:
archdep:
......@@ -94,5 +94,3 @@ archclean:
archmrproper:
rm -f arch/sh/vmlinux.lds
archdep:
......@@ -58,9 +58,9 @@ archclean:
archmrproper:
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
tftpboot.img:
......
......@@ -85,7 +85,5 @@ archclean:
archmrproper:
archdep:
tftpboot.img:
$(MAKE) -C arch/sparc64/boot tftpboot.img
......@@ -18,6 +18,3 @@ tftpboot.img: piggyback $(TOPDIR)/vmlinux $(ROOT_IMG)
piggyback: piggyback.c
$(HOSTCC) $(HOSTCFLAGS) -o piggyback piggyback.c
dep:
......@@ -76,7 +76,7 @@ MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
vmlinux: arch/x86_64/vmlinux.lds
.PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \
clean archclean archmrproper archdep checkoffset
clean archclean archmrproper
bzImage: vmlinux
@$(MAKEBOOT) bzImage
......@@ -101,9 +101,6 @@ archclean:
archmrproper:
archdep:
@$(MAKEBOOT) dep
prepare: include/asm-$(ARCH)/offset.h
......
......@@ -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
$(IA32_CPP) $(CPPFLAGS) -D__BIG_KERNEL__ -D__ASSEMBLY__ -traditional $(SVGA_MODE) $(RAMDISK) $< -o $@
dep:
clean:
rm -f tools/build
rm -f setup bootsect zImage compressed/vmlinux.out
rm -f bsetup bbootsect bzImage compressed/bvmlinux.out
@$(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