aboutsummaryrefslogtreecommitdiff
path: root/libgloss/nios2
AgeCommit message (Collapse)AuthorFilesLines
2023-01-12libgloss: merge nios2 into top-level MakefileMike Frysinger2-118/+32
Avoid a recursive make to speed things up a bit. A nios2-elf build shows installed objects & libs produce same code.
2022-01-29libgloss: fix more missing dir with parallel installMike Frysinger1-0/+3
Depending on the processing order of rules when installing in parallel, these install rules might be processed before some other rule happens to create the respective dirs. Make sure each one creates the needed dirs before installing into them.
2022-01-29libgloss: update Makefile regen rules for merged archesMike Frysinger1-5/+2
For arches that had their configure merged into the top-level, make sure they don't still depend on a subdir configure script that no longer exists. I had cleaned this up for some of the subdirs, but these got lost in the shuffle.
2022-01-26libgloss: merge stub arch configure scripts up a levelMike Frysinger3-4301/+0
For about half the ports, we don't need a subdir configure script. They're using the config/default.m[ht] rules, and they aren't doing any unique configure tests, so they exist just to pass top-level settings down to create the arch Makefile. We can just as easily do that from the top-level Mkaefile directly and skip configure. Most of the remaining configure scripts could be migrated up to the top-level too, but that would require care in each subdir. So let's be lazy and put that off to another day.
2022-01-17libgloss: clean up redundant shared lib warningsMike Frysinger2-8/+0
Use standard AC_MSG_WARN macro in the top-level configure, and delete the message from all the subdirs. There's no need to issue this more than once per libgloss build.
2022-01-14require autoconf-2.69 exactlyMike Frysinger3-20/+6
The newlib & libgloss dirs are already generated using autoconf-2.69. To avoid merging new code and/or accidental regeneration using diff versions, leverage config/override.m4 to pin to 2.69 exactly. This matches what gcc/binutils/gdb are already doing. The README file already says to use autoconf-2.69. To accomplish this, it's just as simple as adding -I flags to the top-level config/ dir when running aclocal. This is because the override.m4 file overrides AC_INIT to first require the specific autoconf version before calling the real AC_INIT.
2022-01-10libgloss: hardcode AC_CONFIG_AUX_DIR pathMike Frysinger2-25/+5
In order to transition to automake, we have to use hardcoded paths in the AC_CONFIG_AUX_DIR macro call (since automake evaluates the path itself, and doesn't expand vars), so simplify all the calls here.
2021-11-06libgloss: regenerate aclocal.m4 & configure w/newer versionsMike Frysinger3-266/+357
Regenerate the files using automake-1.15 & autoconf-2.69 to match the binutils/gdb/gcc projects. Ran: libgloss $ find -name configure.ac -printf '%h\n' | while read d; do (cd $d; export WANT_AUTOCONF=2.69 WANT_AUTOMAKE=1.15; aclocal-1.15 -I.. && autoconf-2.69); done
2021-09-13libgloss/newlib: rename configure.in to configure.acMike Frysinger1-0/+0
The .in name has been deprecated for a long time in favor of .ac.
2020-02-06libgloss: Fix lseek semihosting bug on nios2 and m68kSandra Loosemore1-1/+1
When off_t is 32 bits, the value needs to be sign-extended to 64 bits before shifting right to extract the high-order word. Previously negative offsets were incorrectly encoded. Signed-off-by: Sandra Loosemore <sandra@codesourcery.com>
2019-09-04Adjust nios2 and m68k semihosting for sys/stat.h changes.Sandra Loosemore2-6/+6
Commit 72ff9acad2ab54e80a19ddaec0106065c817e3f6 caused st_atime, st_ctime, and st_mtime to be defined as macros. This collided with use of these identifiers as field names in struct gdb_stat (which represents the GDB RSP encoding of struct stat) in libgloss semihosting support for nios2 and m68k. This patch renames the affected fields of struct gdb_stat. Signed-off-by: Sandra Loosemore <sandra@codesourcery.com>
2019-04-03Add a dummy interrupt handler to nios2 crt0.s.Sandra Loosemore1-1/+13
The location of the handler at offset 0x20 from the start of memory, immediately after the 32-byte reset vector, matches the expectations of real hardware (e.g., a 3c120 board).
2019-03-14Add semihosting docs for nios2 and m68kcygwin-3_0_4-releaseJeff Johnston1-0/+197
Author: Sandra Loosemore <sandra@codesourcery.com> Date: Wed Mar 13 20:22:16 2019 -0700 Add semihosting documentation for nios2 and m68k. QEMU maintainers have asked for a specification of the nios2 semihosting interface. Since it's essentially a copy of the m68k implementation, this patch adds a document for that target as well.
2018-08-08Add BSP and semihosting library for nios2-generic-nommu QEMU emulation.Sandra Loosemore26-0/+5840