Skip to content

Commit 3252b11

Browse files
sravnborgmichal42
authored andcommitted
sh: move machtypes.h to include/generated
Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 6620653 commit 3252b11

6 files changed

Lines changed: 8 additions & 13 deletions

File tree

‎arch/sh/Makefile‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,7 @@ libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y)
205205

206206
BOOT_TARGETS = uImage uImage.bz2 uImage.gz uImage.lzma uImage.srec uImage.bin \
207207
zImage vmlinux.srec romImage
208-
PHONY += maketools $(BOOT_TARGETS) FORCE
209-
210-
maketools: include/linux/version.h FORCE
211-
$(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h
208+
PHONY += $(BOOT_TARGETS)
212209

213210
all: $(KBUILD_IMAGE)
214211

@@ -217,7 +214,8 @@ $(BOOT_TARGETS): vmlinux
217214

218215
compressed: zImage
219216

220-
archprepare: maketools
217+
archprepare:
218+
$(Q)$(MAKE) $(build)=arch/sh/tools include/generated/machtypes.h
221219

222220
archclean:
223221
$(Q)$(MAKE) $(clean)=$(boot)
@@ -234,5 +232,3 @@ define archhelp
234232
@echo ' uImage.bz2 - Kernel-only image for U-Boot (bzip2)'
235233
@echo ' uImage.lzma - Kernel-only image for U-Boot (lzma)'
236234
endef
237-
238-
CLEAN_FILES += include/asm-sh/machtypes.h

‎arch/sh/drivers/pci/fixups-rts7751r2d.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <mach/lboxre2.h>
1616
#include <mach/r2d.h>
1717
#include "pci-sh4.h"
18-
#include <asm/machtypes.h>
18+
#include <generated/machtypes.h>
1919

2020
#define PCIMCR_MRSET_OFF 0xBFFFFFFF
2121
#define PCIMCR_RFSH_OFF 0xFFFFFFFB

‎arch/sh/include/asm/.gitignore‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎arch/sh/include/asm/machvec.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include <linux/types.h>
1414
#include <linux/time.h>
15-
#include <asm/machtypes.h>
15+
#include <generated/machtypes.h>
1616

1717
struct sh_machine_vector {
1818
void (*mv_setup)(char **cmdline_p);

‎arch/sh/tools/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Shamelessly cloned from ARM.
1111
#
1212

13-
include/asm-sh/machtypes.h: $(src)/gen-mach-types $(src)/mach-types
13+
include/generated/machtypes.h: $(src)/gen-mach-types $(src)/mach-types
1414
@echo ' Generating $@'
15-
$(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi
15+
$(Q)mkdir -p $(dir $@)
1616
$(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; }

‎arch/sh/tools/gen-mach-types‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/awk
22
#
3-
# Awk script to generate include/asm-sh/machtypes.h
3+
# Awk script to generate include/generated/machtypes.h
44
# Heavily based on arch/arm/tools/gen-mach-types
55
#
66
BEGIN { nr = 0 }

0 commit comments

Comments
 (0)