Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07527652 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: remove indirection of asm/mach-types.h"

parents 55b538bc 31f8f549
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -329,7 +329,7 @@ all: $(KBUILD_IMAGE) $(KBUILD_DTBS)
boot := arch/arm/boot

archprepare:
	$(Q)$(MAKE) $(build)=arch/arm/tools include/generated/mach-types.h
	$(Q)$(MAKE) $(build)=arch/arm/tools kapi

# Convert bzImage to zImage
bzImage: zImage
+2 −0
Original line number Diff line number Diff line
@@ -37,3 +37,5 @@ generic-y += termbits.h
generic-y += termios.h
generic-y += timex.h
generic-y += trace_clock.h

generated-y += mach-types.h

arch/arm/include/asm/mach-types.h

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
#include <generated/mach-types.h>
+15 −1
Original line number Diff line number Diff line
@@ -4,10 +4,24 @@
# Copyright (C) 2001 Russell King
#

gen := arch/$(ARCH)/include/generated
kapi := $(gen)/asm

kapi-hdrs-y := $(kapi)/mach-types.h

targets += $(addprefix ../../../,$(kapi-hdrs-y))

PHONY += kapi

kapi:	$(kapi-hdrs-y)

# Create output directory if not already present
_dummy := $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)')

quiet_cmd_gen_mach = GEN     $@
      cmd_gen_mach = mkdir -p $(dir $@) && \
		     $(AWK) -f $(filter-out $(PHONY),$^) > $@ || \
		     { rm -f $@; /bin/false; }

include/generated/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE
$(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE
	$(call if_changed,gen_mach)