]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/arm/tools/Makefile
ARM: remove indirection of asm/mach-types.h
[mirror_ubuntu-focal-kernel.git] / arch / arm / tools / Makefile
CommitLineData
1da177e4
LT
1#
2# linux/arch/arm/tools/Makefile
3#
4# Copyright (C) 2001 Russell King
5#
6
4e2648db
RK
7gen := arch/$(ARCH)/include/generated
8kapi := $(gen)/asm
9
10kapi-hdrs-y := $(kapi)/mach-types.h
11
12targets += $(addprefix ../../../,$(kapi-hdrs-y))
13
14PHONY += kapi
15
16kapi: $(kapi-hdrs-y)
17
18# Create output directory if not already present
19_dummy := $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)')
20
6e8ac724
MY
21quiet_cmd_gen_mach = GEN $@
22 cmd_gen_mach = mkdir -p $(dir $@) && \
23 $(AWK) -f $(filter-out $(PHONY),$^) > $@ || \
24 { rm -f $@; /bin/false; }
25
4e2648db 26$(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE
6e8ac724 27 $(call if_changed,gen_mach)