From 94f5dfed74985a1a8ff4b8bf1a383f46621e5f8c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 4 Dec 2021 13:35:25 -0500 Subject: sim: moxie: hoist dtb rules up to common builds These rules don't depend on the target compiler settings, so hoist the build logic up to the common builds for better parallelization. --- sim/moxie/Makefile.in | 20 -------------------- sim/moxie/local.mk | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 20 deletions(-) create mode 100644 sim/moxie/local.mk (limited to 'sim/moxie') diff --git a/sim/moxie/Makefile.in b/sim/moxie/Makefile.in index 6671389..0e8b20a 100644 --- a/sim/moxie/Makefile.in +++ b/sim/moxie/Makefile.in @@ -17,32 +17,12 @@ ## COMMON_PRE_CONFIG_FRAG -dtbdir = $(datadir)/gdb/dtb - SIM_OBJS = \ $(SIM_NEW_COMMON_OBJS) \ interp.o \ sim-resume.o SIM_EXTRA_LIBS = -lm -lz -SIM_EXTRA_INSTALL = install-dtb SIM_EXTRA_CFLAGS = -DDTB="\"$(dtbdir)/moxie-gdb.dtb\"" ## COMMON_POST_CONFIG_FRAG - -all: moxie-gdb.dtb - -moxie-gdb.dtb: $(MAINT) moxie-gdb.dts - @echo Regenerating moxie-gdb.dtb - if test "x$(DTC)" != x; then \ - $(DTC) -O dtb -o moxie-gdb.dtb ${srcdir}/moxie-gdb.dts || exit 1; \ - $(SHELL) $(srcroot)/move-if-change moxie-gdb.dtb ${srcdir}/moxie-gdb.dtb || exit 1; \ - else \ - echo "Could not update the moxie-gdb.dtb file because the device "; \ - echo "tree compiler tool (dtc) is missing. Install the tool to "; \ - echo "update the device tree blob."; \ - fi - -install-dtb: moxie-gdb.dtb - $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(dtbdir) - $(INSTALL_DATA) $(srcdir)/moxie-gdb.dtb $(DESTDIR)$(dtbdir)/moxie-gdb.dtb diff --git a/sim/moxie/local.mk b/sim/moxie/local.mk new file mode 100644 index 0000000..b73bd85 --- /dev/null +++ b/sim/moxie/local.mk @@ -0,0 +1,32 @@ +# See sim/Makefile.am +# +# Copyright (C) 1993-2021 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +dtbdir = $(datadir)/gdb/dtb + +dtb_DATA = %D%/moxie-gdb.dtb + +%D%/moxie-gdb.dtb: @MAINT@ %D%/moxie-gdb.dts %D%/$(am__dirstamp) + $(AM_V_GEN) \ + if test "x$(DTC)" != x; then \ + $(DTC) -O dtb -o $@.tmp ${srcdir}/%D%/moxie-gdb.dts || exit 1; \ + $(SHELL) $(srcroot)/move-if-change $@.tmp ${srcdir}/%D%/moxie-gdb.dtb || exit 1; \ + touch ${srcdir}/%D%/moxie-gdb.dtb; \ + else \ + echo "Could not update the moxie-gdb.dtb file because the device "; \ + echo "tree compiler tool (dtc) is missing. Install the tool to "; \ + echo "update the device tree blob."; \ + fi -- cgit v1.1