diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-27 10:37:30 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-30 04:59:38 +0300 |
commit | 98230b7db1bab77e5fce817ed8c81dd7c577372c (patch) | |
tree | e0d9fe445dee3c8027c27ea18faa1c0a3c54429d /libgloss/xtensa | |
parent | ddb614993a78bf2cdf2ed269617f7f552490e76f (diff) |
libgloss: xtensa: fix crt0.o rule
Don't hardcode a custom rule for this -- reuse libobjs_a_SOURCES
which was designed for this exact scenario.
Diffstat (limited to 'libgloss/xtensa')
-rw-r--r-- | libgloss/xtensa/Makefile.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libgloss/xtensa/Makefile.inc b/libgloss/xtensa/Makefile.inc index 02308e4f3..3ce02c190 100644 --- a/libgloss/xtensa/Makefile.inc +++ b/libgloss/xtensa/Makefile.inc @@ -8,6 +8,10 @@ multilibtool_DATA += \ %D%/sys.qemu.specs \ %D%/sys.openocd.specs \ %D%/crt0.o +libobjs_a_SOURCES += \ + %D%/crt0.S \ + %D%/crt1-sim.S \ + %D%/crt1-boards.S multilibtool_LIBRARIES += %D%/libgloss.a @@ -50,6 +54,3 @@ multilibtool_DATA += %D%/boards/esp32s3/memory.elf.ld %C%_libsys_openocd_a_CPPFLAGS += -I$(srcdir)/%D%/boards/esp32s3/include endif endif - -%D%/crt0.$(OBJEXT): %D%/crt0.S - $(AM_V_CPPAS)$(CPPASCOMPILE) $(CPPFLAGS) -o $@ -c $< |