summaryrefslogtreecommitdiffstats
path: root/sys/conf/Makefile.arm
Commit message (Collapse)AuthorAgeFilesLines
* MFC r272605: Use -mfpu=none when building arm kernels.ian2015-02-131-0/+3
|
* MFC r273287:andrew2014-10-291-0/+2
| | | | | Only build the ARM tranpoline when KERNPHYSADDR is defined as it is otherwise unneeded in armv6 kernels.
* MFC 262952, 262958, 262966, 262979, 262980, 262986, 262987, 262995, 262997,ian2014-05-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 263030, 263033, 263034, 263056, 263057, Remove all the redundant external declarations of exception vectors and runtime setting of the pointers that's scattered around various places. Remove all traces of support for ARM chips prior to the arm9 series. Make the default exception handler vectors point to where I thought they were already pointing: the default handlers (not a panic that says there is no default handler). Eliminate irq_dispatch.S. Move the data items it contained into arm/intr.c and the functionality it provided into arm/exception.S. Move the exception vector table (so-called "page0" data) into exception.S and eliminate vectors.S. Change the way the asm GET_CURTHREAD_PTR() macro is defined so that code using it doesn't have to have an "AST_LOCALS" macro somewhere in the file. Arrange for arm fork_trampoline() to return to userland via the standard swi_exit code in exception.S instead of having its own inline expansion of the DO_AST and PULLFRAME macros. Now that the PUSHFRAME and PULLFRAME macros are used only in the swi entry/exit code, they don't need to be macros. Except that didn't work and the whole change was reverted. Remove some unnecessary indirection and jump right to the handler functions. Use panic rather than printf to "handle" an arm26 address exception (should never happen on arm32). Remove the unreferenced DATA() macro. Remove #include <machine/asmacros.h> from files that don't need it.
* MFC r261252, r261279, r261304, r261305, r261322, r261336, r261337, r261338,ian2014-05-151-0/+3
| | | | | | | | | | | | | | | | | r261353 Fix the name of the dts file for the HL201... When mapping an address, the bsh needs the same offset we do for other things. Add explicit depends on bus_if.h and device_if.h to avoid a chicken and egg problem in some compilation environments. Switch to using PAs rather than VAs for the addresses we map for devices. This is a nop, except for what's reported by atmelbus for the resources. Comment cleanups. Move things around for diff reduction against FDT work.
* MFC r257170, r257171, r257172, r257240, r257278, r257279, r257280, r257281,ian2014-05-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | r257282, r257332 Wait for DesignWare UART transfers completion before accessing line control Enable UART busy detection handling for Armada XP - based board Enable SATA interface on Armada XP Run mvs SATA driver on Armada XP instead of old mv_sata Retire arm_remap_nocache() and the data and constants associated with it. Remove hard-coded mappings related to Armada XP support Fix-up DTB for Armada XP registers' base according to the actual settings Change Armada XP kernel load address to the u-boot's end address Remove not working and deprecated PJ4Bv6 support Switch off explicit broadcasting of the TLB flush operations for PJ4B CPU Add missing ARMv6 CPU functions to ARM Makefile
* MFC r260494:dim2014-01-121-4/+8
| | | | | | | | | Fix a braino with r259730: we cannot currently use CFLAGS.gcc or CFLAGS.clang in sys/conf/Makefile.arm, since the main kernel build does not use <bsd.sys.mk>. So revert that particular change for now. Pointy hat to: me Noticed by: zbb
* MFC r257532 (by adrian):dim2013-12-301-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix this build for clang. MFC r259730: To avoid having to explicitly test COMPILER_TYPE for setting clang-specific or gcc-specific flags, introduce the following new variables for use in Makefiles: CFLAGS.clang CFLAGS.gcc CXXFLAGS.clang CXXFLAGS.gcc In bsd.sys.mk, these get appended to the regular CFLAGS or CXXFLAGS for the right compiler. MFC r259913: For libstand and sys/boot, split off gcc-only flags into CFLAGS.gcc. MFC r259927: Fix pc98 build, by also forcing COMPILER_TYPE in sys/boot/pc98/boot2's Makefile. Pointy hat to: dim
* 2 years, 10 months, 22 days after the projects/arm_eabi branch was createdandrew2013-07-161-2/+2
| | | | | | | | | | | | | | | | | | | | make the ARM EABI the default ABI on arm, armeb, armv6 and armv6eb. This is intended to be the default ABI from now on with the old ABI to be retired. Because of this all users are strongly suggested to upgrade to the ARM EABI. As the two ABIs are incompatible it is unlikely upgrading in place will work. Users should perform a full backup and either use an external machine to upgrade, or install to an alternative location on their media. They should also reinstall all ports or packages when these are available. The only known issues are: - pkg incorrectly detects the ABI. This is fixed upstream, and will a patch will be made to the port. - GDB can have issues with executables built with clang. __FreeBSD_version has been bumped.
* The -mno-apcs-frame argument is unavaliable on clang, also ignore it there.andrew2013-03-171-1/+1
|
* The compiler argument -mno-apcs-frame has no meaning when using EABI as weandrew2013-03-161-0/+2
| | | | will use aapcs frames, not apcs frames.
* Fix the indentation for a few commands that were missed or incorrectlyandrew2013-03-161-3/+3
| | | | indented in r248362.
* Adjust the indentation of the trampoline compilation to make the commandsandrew2013-03-161-19/+18
| | | | easier to follow.
* - Clang doesn't understand the -mno-thumb-interwork. Only use it with gcc.andrew2013-03-101-0/+6
| | | | | | - We need to add "-mllvm -arm-enable-ehabi" to clangs CFLAGS when generating the unwind tables to tell it to add the required directives to the assembly it generates.
* Don't build the kernel with Thumb interworking as we don't support Thumb.andrew2013-01-231-0/+2
|
* When DDB is enabled and we are building for the ARM EABI include the unwindandrew2013-01-191-0/+2
| | | | tables in the kernel.
* Fix LINT build for arm: NOTES defines LDFLAGS by way of a make optionmarcel2012-11-291-1/+1
| | | | | | | | but LDFLAGS is not (yet) passed on to the linker (via SYSTEM_LD et al). Do so now. As such, any kernel configuration can now define linker flags by setting LDFLAGS as normal and not have to revert to hacks like setting DEBUG for flags that do not relate to debugging (see sys/powerpc/conf/MPC85XX).
* The tramp stuff isn't dependent on DDB, so always add these to theimp2012-11-231-2/+0
| | | | CLEANFILES list.
* Remove duplication and centralize testing of various config(8)ed features.obrien2012-09-121-2/+0
|
* Not all Pmake derived makes quietly tolerate assignment from shell commandsobrien2012-09-121-1/+1
| | | | | | | with no output. Add "echo" at the end these shell commands whose output is assigned to a variable's value to ensure there is some output. Submitted by: John Van Horne <jvanhorne@juniper.net>
* Get rid of ARM_BIG_ENDIAN for good:gonzo2012-08-211-11/+0
| | | | | - remove leftovers in Makefile.arm - Let ld use default output format instead of providing one in ldscript
* Merging projects/armv6, part 1gonzo2012-08-151-1/+3
| | | | | | | | | Cummulative patch of changes that are not vendor-specific: - ARMv6 and ARMv7 architecture support - ARM SMP support - VFP/Neon support - ARM Generic Interrupt Controller driver - Simplification of startup code for all platforms
* Force overwrite of gz file, to make NO_CLEAN builds work.imp2012-07-151-1/+1
|
* Add -ffreestanding to the command line, so taht inflate.c compiles and linkcognet2011-06-151-1/+2
| | | | | | | properly with llvm. PR: arm/156771 Submitted by: Damjan Marion <damjan dot marion at gmail DOT com>
* Convert Marvell ARM platforms to FDT convention.raj2010-06-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | The following systems are involved: - DB-88F5182 - DB-88F5281 - DB-88F6281 - DB-78100 - SheevaPlug This overhaul covers the following major changes: - All integrated peripherals drivers for Marvell ARM SoC, which are currently in the FreeBSD source tree are reworked and adjusted so they derive config data out of the device tree blob (instead of hard coded / tabelarized values). - Since the common FDT infrastrucutre (fdtbus, simplebus) is used we say good by to obio / mbus drivers and numerous hard-coded config data. Note that world needs to be built WITH_FDT for the affected platforms. Reviewed by: imp Sponsored by: The FreeBSD Foundation.
* Add support for Cavium Econa CNS11XX ARM boards. These boards wererpaulo2010-01-041-1/+1
| | | | | | | | | | previously know by StarSemi STR9104. Tested by the submitter on an Emprex NSD-100 board. Submitted by: Yohanes Nugroho <yohanes at gmail.com> Reviewed by: freebsd-arm, stas Obtained from: //depot/projects/str91xx/...
* Rename Marvell ARM CPU specific file according to r186933.raj2009-01-091-1/+1
|
* enable use of modules but disable them by adding MODULES_OVERRIDE=""sam2008-11-301-3/+2
| | | | | | | in each config file until we can sort out issues in the modules tree Reviewed by: imp MFC after: 1 month
* Introduce basic support for Marvell families of system-on-chip ARM devices:raj2008-10-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Orion - 88F5181 - 88F5182 - 88F5281 * Kirkwood - 88F6281 * Discovery - MV78100 The above families of SOCs are built around CPU cores compliant with ARMv5TE instruction set architecture definition. They share a number of integrated peripherals. This commit brings support for the following basic elements: * GPIO * Interrupt controller * L1, L2 cache * Timers, watchdog, RTC * TWSI (I2C) * UART Other peripherals drivers will be introduced separately. Reviewed by: imp, marcel, stass (Thanks guys!) Obtained from: Marvell, Semihalf
* We need -I$S to compile the elf trampoline.cognet2008-08-041-5/+7
| | | | MFC after: 3 days
* If you build a compiler with TARGET_BIG_ENDIAN, and then try to buildimp2008-04-041-0/+4
| | | | | a little endian kernel, things break. Be explicit about the endian choice by setting it in the little endian case as well.
* Make kernel.tramp build properly on ARM9E.raj2008-04-041-1/+1
| | | | | Reviewed by: imp Approved by: cognet (mentor)
* Always build kernel.tramp. This should be helpful for a lot ofimp2008-04-031-0/+2
| | | | people, as well making sure it doesn't break.
* Introduce a standalone shell script for embedding MFS image.raj2008-02-051-0/+4
| | | | | | | | | This allows to fix a problem with ARM kernel.bin not having the MFS image embedded: it is objcopied from the kernel.noheader temporary ELF file, which was not subject to embedding the MFS image previously. Reviewed by: imp Approved by: cognet (mentor)
* Bring in two bandaids to get the elf trampoline to work again, until I findcognet2007-07-271-10/+14
| | | | | | | | | | a proper solution. - Add a dummy entry point which just calls the C entry points, and try to make sure it's the first code in the binary. - Copy a bit more than func_end to try to copy the whole load_kernel() function. gcc4 puts code behind the func_end symbol. Approved by: re (blanket)
* Revert config(8) version bump. It brings major pain for people working onwkoszek2007-05-161-1/+1
| | | | | | | | | | different versions of FreeBSD source tree. Old config(8) can now be used unless you want to use INCLUDE_CONFIG_FILE option. Approved by: imp Reviewed by: imp
* Bump config(8) version and build requirement for config(8) to 600006. Thiswkoszek2007-05-131-1/+1
| | | | | | | | | | is caused by my latest changes to config(8). You're supposed to install new config(8) in order to prevent yourself from seeing a warning about old version of that tool. You should configure the kernel with a new config(8) then. Oked by: rwatson, cognet (mentor)
* Only use -mno-apcs-frame if DDB is not in the kernel, as it prevent thecognet2006-07-241-1/+4
| | | | | | backtraces from working. MFC After: 3 days
* Add -EB to ${LD} too if we're making a big endian kernel, not anything incognet2006-07-181-0/+1
| | | | kernel makefiles uses SYSTEM_LD.
* Make sure the stack is properly aligned.cognet2006-06-181-3/+4
| | | | Enable the MMU when relocating as well, and use write-through cache.
* MFp4:cognet2006-06-121-1/+3
| | | | | | | - Try hard to calculate a safe sp, so that the stack doesn't get smashed while uncompressing or relocating the kernel. - Bring in code needed to calculate the cacheline size etc, needed for arm9_idcache_wbinv_all.
* To avoid problems, invalidate the data cache and disable the MMU oncecognet2006-05-301-2/+6
| | | | we're done uncompressing the kernel.
* Erm don't use -mno-apcs-frame if we're going to do profiling either, it's notcognet2006-03-271-1/+1
| | | | exactly compatible.
* Build a minimal pagetables, with only section mappings, mapped write through,cognet2006-01-201-1/+3
| | | | to speed up the decompression.
* Rather than appending it at the end of the kernel build process, give thecognet2005-12-201-21/+20
| | | | | | ELF trampoline build its own target, "trampoline". It makes it possible to construct a bootable gzipped kernel without having to build in the same process.
* Make the elf trampoline disable the MMU, and link it at physical address,cognet2005-12-201-14/+23
| | | | to avoid bad surprises.
* Teach the elf trampoline how to deal with gzipped kernels.cognet2005-12-051-4/+17
|
* Version 600004 is better than 700000 given other changes that are inimp2005-11-281-1/+1
| | | | | | | the pipeline. We had to bump the version for 600004 because the old parser got confused and generated bogus output. Approved by: ru@
* Make config(8) understand ORed dependecies in "files*" andru2005-11-271-1/+1
| | | | improve tracking of known devices. Bump config(8) version.
* Use the correct file name for the ldscript.cognet2005-11-251-2/+2
|
* Create a non-elf pure binary version of the kernel as well.cognet2005-11-241-1/+19
|
OpenPOWER on IntegriCloud