mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 08:16:49 +07:00
8cb661d6a4
Depending on which of the three dependencies for archprepare (in arch/sh/Makefile) get built first, the directory include/asm-sh may or may not exist when the maketools target is built. If the directory does not exist, awk will fail to generate machtypes.h. This patch fixes this by creating the directory before awk is executed. Signed-off-by: Erik Johansson <erik.johansson@motorola.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 lines
481 B
Makefile
17 lines
481 B
Makefile
#
|
|
# arch/sh/tools/Makefile
|
|
#
|
|
# Copyright (C) 2003 Paul Mundt
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU General Public
|
|
# License. See the file "COPYING" in the main directory of this archive
|
|
# for more details.
|
|
#
|
|
# Shamelessly cloned from ARM.
|
|
#
|
|
|
|
include/asm-sh/machtypes.h: $(src)/gen-mach-types $(src)/mach-types
|
|
@echo ' Generating $@'
|
|
$(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi
|
|
$(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; }
|