mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
sim: fix arch Makefile regen when unified
The $(arch) variable is only setup for cgen ports, so calculate this value dynamically. We also need to generate multiple inputs in order to properly recreate the subdir Makefile, so list them all.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2021-06-29 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* Make-common.in (Makefile): Replace $(arch) and pass more files to
|
||||
config.status.
|
||||
|
||||
2021-06-29 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* callback.c [!HAVE_KILL] (os_kill): Return ENOSYS.
|
||||
|
@ -534,7 +534,8 @@ force:
|
||||
|
||||
Makefile: Makefile.in $(srccom)/Make-common.in $(config.status)
|
||||
@SIM_COMMON_BUILD_FALSE@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
@SIM_COMMON_BUILD_TRUE@ cd .. && $(SHELL) ./config.status $(arch)/Makefile
|
||||
@SIM_COMMON_BUILD_TRUE@ pwd=`pwd` && subdir=`basename "$$pwd"` && cd .. && \
|
||||
@SIM_COMMON_BUILD_TRUE@ $(SHELL) ./config.status Make-common.sim $$subdir/Makefile.sim $$subdir/Makefile
|
||||
|
||||
@SIM_COMMON_BUILD_FALSE@config.status: configure
|
||||
@SIM_COMMON_BUILD_FALSE@ $(SHELL) ./config.status --recheck
|
||||
|
Reference in New Issue
Block a user