summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/nios2 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move make/custom/* files to bspsSebastian Huber2018-04-231-29/+0
| | | | | | | | | Adjust various build files. Remove automatic generation of the c/src/lib/libbsp/*/acinclude.m4 files from bootstrap script. This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Remove AC_CONFIG_SRCDIR()Sebastian Huber2018-04-232-2/+0
| | | | | | | | | | | This AC_CONFIG_SRCDIR() is just a sanity check in this insane build system. Since all content of c/src/lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@ is bound to be moved it makes no sense to keep it. This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move benchmark timer to bspsSebastian Huber2018-04-202-138/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move startup files to bspsSebastian Huber2018-04-206-484/+3
| | | | | | | | Adjust build support files to new directory layout. This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move start files to bspsSebastian Huber2018-04-203-167/+2
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move console drivers to bspsSebastian Huber2018-04-202-100/+2
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move clock drivers to bspsSebastian Huber2018-04-202-56/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move sbrk.c to bspsSebastian Huber2018-04-201-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move getentropy-cpucounter.c to bspsSebastian Huber2018-04-201-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Convert all bsp_predriver_hook()Sebastian Huber2018-04-201-1/+0
| | | | | | Use RTEMS_SYSINIT_ITEM() instead. Update #2408.
* bsps: Move bspgetworkarea.c to bspsSebastian Huber2018-04-201-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move bspreset_loop.c to bspsSebastian Huber2018-04-201-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move bspclean.c to bspsSebastian Huber2018-04-201-1/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* build: Remove subdir-objects from BSP configure.acSebastian Huber2018-04-121-1/+1
| | | | | | | The subdir-objects do not work currently due to BSP sources in bsps and c and the existing build tree layout. Update #3387.
* bsps: Remove empty gnatinstallhandler.cSebastian Huber2018-04-121-1/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move bootcard.c to bspsSebastian Huber2018-04-121-1/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Remove headers from librtemsbsp_a_SOURCESSebastian Huber2018-04-121-1/+0
| | | | | | | | This was used by the not supported "make dist". This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Avoid line continuation in Makefile.amSebastian Huber2018-04-121-2/+4
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* configure: Add subdir-objects to all automake flags.Chris Johns2018-04-112-2/+2
| | | | | | | | | | | This option silences warning with automake-1.16.1 allowing us to upgrade to that version. This change has been tested with automake-1.12.6 and automake-1.16.1. It seems version 1.16.1 configures slower than 1.12.6 for the same source and BSP. The newer versions is 6 second slower. Close #3387.
* build: Remove DISTCLEANFILESSebastian Huber2018-04-091-1/+0
| | | | | A "make distclean" is not supported. So, it makes no sense to have pure "make distclean" related stuff in the Makefile.am.
* bsps: Remove librtemsbsp.a wrapupSebastian Huber2018-04-091-17/+17
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move config macros to RTEMS_BSP_CONFIGURESebastian Huber2018-04-041-3/+0
| | | | | | | | Provide HAS_NETWORKING and HAS_SMP Automake conditionals for all BSPs. This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Add shared-sources.amSebastian Huber2018-04-041-0/+1
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* build: Remove EXTRA_DISTSebastian Huber2018-04-041-4/+0
| | | | | A "make dist" is not supported. So, it makes no sense to have pure "make dist" related stuff in the Makefile.am.
* bsps: Remove unused RTEMS_CPU_MODELSebastian Huber2018-03-131-1/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Rework cache manager implementationSebastian Huber2018-01-311-1/+1
| | | | | | | | | | | | | | | | | | The previous cache manager support used a single souce file (cache_manager.c) which included an implementation header (cache_.h). This required the use of specialized include paths to find the right header file. Change this to include a generic implementation header (cacheimpl.h) in specialized source files. Use the following directories and files: * bsps/shared/cache * bsps/@RTEMS_CPU@/shared/cache * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY/start/cache.c Update #3285.
* Remove make preinstallChris Johns2018-01-257-214/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
* bsps: Use CPPASCOMPILE for startfileSebastian Huber2018-01-021-4/+7
| | | | Update #3254.
* bsps: Add EXTRA_DIST to all BSP Makefile.amSebastian Huber2018-01-021-1/+2
| | | | | | | | | | This makes it possible to easily use EXTRA_DIST += foobar in fragments. Update #3254.
* bsps: Include bsp.am in all BSP Makefile.amSebastian Huber2018-01-021-0/+1
| | | | Update #3254.
* nios2_iss: Simplify bsp_specsJoel Sherrill2017-12-192-6/+3
| | | | Updates #3520.
* nios2_iss/bsp_specs: Fix typoJoel Sherrill2017-11-291-1/+1
| | | | Updates #3520.
* REVERT */*/bsp_specs: Increase similarity to ease futureJoel Sherrill2017-11-271-1/+1
| | | | | | Patch was not intended to be pushed yet. Updates #3520.
* */*/bsp_specs: Increase similarity to ease future analysisJoel Sherrill2017-11-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Done: arm bfin epiphany i386 lm32 m32c mips moxie nios2 or1k powerpc riscv sh sparc sparc64 v850 To do: m68k Differences noted: + endfile was sometimes before startfile + endfile sometimes was hard-coded and did not have -qrtems version + Should -e XXX (e.g. entry point) be in linkcmds? + Should -u XXX (e.g. undefined symbols) be in linkcmds? + Typos: Odd spacing, "old_endfiles" typo, and *(old_endfiles) (not %) + nios2: Referenced crtnn.o not crtn.o (error) Need to revisit: + m32c, moxie, sparc64 includes !nostdlib which is not used elsewhere + sh has -EL/-EB mapping. Why needed? + sparc64 didn't include crti.o/crtn.o but it is part of toolset + v850 uses something like this for link and end_file: "%{qrtems: %(old_link)}" This means that these are unnecessary. Try this on all. + mips uses old_link all the time also. + arm/tms750 adds -EB. + powerpc: Why do we have rtems_crt* and not use something from GCC? Updates #3520.
* libbsp/*/*/configure.ac: Remove references to bsp_specs in AC_CONFIG_SRCDIRJoel Sherrill2017-11-271-1/+1
| | | | Updates #3250.
* bsps: Provide <tm27.h> in each BSPSebastian Huber2017-11-273-2/+3
| | | | | | | | | Since the <tm27.h> is highly BSP-dependent and used only by the tm27 test program we must provide this header file for each BSP. Without the preinstall build target each header file must have a unique source header file. Update #3254.
* Remove coverhd.hSebastian Huber2017-11-242-5/+0
| | | | | | | This header file contained timing overhead values which are hard to maintain. Update #3254.
* bsps: Simplify RTEMS_BSP_CLEANUP_OPTIONSSebastian Huber2017-11-221-1/+1
| | | | | | | | | Remove BSP-specific defaults for RTEMS_BSP_CLEANUP_OPTIONS to simplify the BSP configuration and documentation. Change defaults to: BSP_PRESS_KEY_FOR_RESET=0 BSP_RESET_BOARD_AT_EXIT=1 BSP_PRINT_EXCEPTION_CONTEXT=1
* getentropy: Add cpu counter based implementation.Christian Mauderer2017-11-171-0/+1
| | | | Update #3239.
* bsps: Clock_driver_support_install_isr()Sebastian Huber2017-09-181-2/+2
| | | | | | | Remove old ISR parameter since is not used by the clock driver shell. Make an implementation optional. Update #3139.
* build-system: Parallel build all subdirs.Chris Johns2017-05-241-1/+1
|
* Rename *.s to *.SSebastian Huber2016-12-202-1/+1
| | | | | | Consistently use *.S for assembler files. Close #2701.
* nios2/nios2_iss: Remove include of <rtems/console.h> from <bsp.h> and fix ↵Joel Sherrill2016-03-291-1/+0
| | | | warnings
* nios2/nios2_iss/include/bsp.h: Do not include <rtems/clockdrv.h>Joel Sherrill2016-03-271-1/+0
|
* nios2/nios2_iss: Add per-section compilation and linking supportJoel Sherrill2016-03-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | updates #2577. For the nios2_iss BSP variant without this option sample executables sizes were as follows: text data bss dec hex filename 198692 6672 6068 211432 339e8 ticker.exe 75408 1924 1892 79224 13578 minimum.exe 1044536 36308 14032 1094876 10b4dc cxx_iostream.exe 877164 68972 19300 965436 ebb3c fileio.exe 703628 48772 37196 789596 c0c5c pppd.exe 336340 19532 8972 364844 5912c capture.exe 216196 6912 6148 229256 37f88 nsecs.exe 319236 18048 6632 343916 53f6c paranoia.exe 317556 12944 7020 337520 52670 cdtest.exe 192980 6476 6036 205492 322b4 base_sp.exe 198068 6680 9876 214624 34660 unlimited.exe 206628 4856 6036 217520 351b0 hello.exe 459304 19208 13368 491880 78168 loopback.exe For the nios2_iss BSP variant with this option sample executables sizes were as follows: text data bss dec hex filename 187044 6560 6048 199652 30be4 ticker.exe 50944 828 1880 53652 d194 minimum.exe 731956 27876 13228 773060 bcbc4 cxx_iostream.exe 848108 67272 19020 934400 e4200 fileio.exe 645152 47968 36464 729584 b21f0 pppd.exe 315092 18792 8952 342836 53b34 capture.exe 205588 6780 6128 218496 35580 nsecs.exe 305684 17916 6612 330212 509e4 paranoia.exe 305360 11476 7000 323836 4f0fc cdtest.exe 179428 6364 6016 191808 2ed40 base_sp.exe 182036 6548 9856 198440 30728 unlimited.exe 189908 4708 6016 200632 30fb8 hello.exe 421696 18772 13280 453748 6ec74 loopback.exe
* Use linker set for libio initializationSebastian Huber2016-02-031-2/+0
| | | | Update #2408.
* api: Remove deprecated NotepadsAun-Ali Zaidi2015-12-241-2/+0
| | | | | | | | | | | | | | | | | | | | | | | Notepads where a feature of RTEMS' tasks that simply functioned in the same way as POSIX keys or threaded local storage (TLS). They were introduced well before per task variables, which are also deprecated, and were barely used in favor of their POSIX alternatives. In addition to their scarce usage, Notepads took up unnecessary memory. For each task: - 16 32-bit integers were allocated. - A total of 64 bytes per task per thread. This is especially critical in low memory and safety-critical applications. They are also defined as uint32_t, and therefore are not guaranteed to hold a pointer. Lastly, they are not portable solutions for SMP and uniprocessor systems, like POSIX keys and TLS. updates #2493.
* bsps: Delete superfluous bsp_pretasking_hook()Sebastian Huber2015-12-101-1/+0
| | | | | | Use the bsp_predriver_hook() instead. Update #2408.
* bsps: Fix some linker set descriptionsSebastian Huber2015-12-091-1/+2
| | | | | Fix broken RTEMS linker set descriptions introduced by b618d8cfc54f84d4ed03dc7b7fa510c872e6128a.
* Add RTEMS linker setsSebastian Huber2015-12-081-1/+2
| | | | Update #2408.