2005-04-17 06:20:36 +08:00
|
|
|
#
|
|
|
|
# linux/arch/arm/tools/Makefile
|
|
|
|
#
|
|
|
|
# Copyright (C) 2001 Russell King
|
|
|
|
#
|
|
|
|
|
2016-10-19 03:11:23 +08:00
|
|
|
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)')
|
|
|
|
|
2016-04-19 13:05:09 +08:00
|
|
|
quiet_cmd_gen_mach = GEN $@
|
|
|
|
cmd_gen_mach = mkdir -p $(dir $@) && \
|
|
|
|
$(AWK) -f $(filter-out $(PHONY),$^) > $@ || \
|
|
|
|
{ rm -f $@; /bin/false; }
|
|
|
|
|
2016-10-19 03:11:23 +08:00
|
|
|
$(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE
|
2016-04-19 13:05:09 +08:00
|
|
|
$(call if_changed,gen_mach)
|