Commit Graph

133 Commits

Author SHA1 Message Date
skrll
4db03d42c9 Spelling in comment 2016-08-17 22:04:51 +00:00
joerg
a542f58193 Don't reuse LDFLAGS for arguments passed directly to ${LD}, share/mk
expects it to be passed to ${CC} or ${CXX}, so they will generally
prefix flags with -Wl.
2016-03-01 16:08:22 +00:00
christos
f56c05e9f6 remove the MKPIE and MKCTF no hack, and move it to the .mk files 2016-01-31 15:29:04 +00:00
christos
cb09bfac79 Disable PIE and CTF for standalone code
XXX: Must be done centrally, and there must be a better way.
2016-01-31 02:16:28 +00:00
christos
54e7435b9e PR/50526: David Binderman: Fix incorrect test 2015-12-13 19:18:32 +00:00
martin
934f228a1e Clear STRIPFLAGS (stripping in general is dangerous with the -BE8 object
format, and should never be done before the final linking has happened).
From Rin Okuyama.
2015-07-15 11:21:49 +00:00
christos
c182898b0d We have three sets of DTYPE_ constants in the kernel:
altq		Drop 		Type
	disklabel	Disk 		Type
	file		Descriptor	Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.
2015-01-02 19:42:05 +00:00
skrll
1bf05dde35 Make this work with earm kernels. Not sure the test is realy worth it.
Partially from Greg Willatt
2014-11-29 08:15:07 +00:00
bouyer
24b21d0e0f Override CPUFLAGS for compiler cpu-specific options, instead of appening
to CFLAGS. This allows the user to define CPUFLAGS without breaking the
build.
2014-07-22 17:46:59 +00:00
tsutsui
8c436a9898 Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.
XXX: probabry we should have bsd.saprog.mk or something.
2014-01-12 15:26:28 +00:00
joerg
69fd5d473d Move flags for ARM's APCS ABI into a common variable. Add some forces to
deal with limitations in the Clang <-> LLVM backend interaction to pick
the correct ABI and target assembler.
2013-12-15 18:08:37 +00:00
joerg
13bf828c30 Use -marm for clang builds, too. 2013-12-05 16:26:04 +00:00
joerg
f4495b9fbf Use format strings. 2013-12-01 02:53:07 +00:00
joerg
29a58f29eb Inform compiler that the volatile assignment will terminate the function. 2013-12-01 02:52:53 +00:00
christos
6fceff771f mark variable unused 2013-11-04 21:57:26 +00:00
christos
1852ef218f fix pointer cast; mark variable used 2013-11-04 21:54:59 +00:00
christos
8cb7df9be6 make unused. 2013-11-04 21:54:58 +00:00
christos
fe9baffcee explicitly add -marm 2013-11-04 21:25:05 +00:00
christos
dbd4f70a38 -mno-thumb-interwork is the default, and there is no -mthumb in gcc 4.8 2013-11-04 21:18:05 +00:00
matt
94de07308f iMX233/OLinuXino changes from Petri Laskso.
See http://mail-index.netbsd.org/port-arm/2013/10/07/msg002042.html
2013-10-07 17:36:40 +00:00
matt
b26bfb6329 Use <bsd.klinks.mk>
DBG=-Os (instead of blank)
2013-08-21 05:59:14 +00:00
matt
36f3d5215f Use <bsd.klinks.mk> 2013-08-21 05:55:26 +00:00
matt
50192497ae Add CPPFLAGS+= -mno-thumb -mno-thumb-interwork 2013-08-15 21:41:08 +00:00
matt
da81ffdfc8 Add -fno-unwind-tables 2013-06-23 13:56:01 +00:00
matt
5695f408d6 use KLINK_MACHINE 2013-05-02 04:22:44 +00:00
matt
5f058922b3 This change arm, armeb, earm, earmeb, earmhf, earmhfeb so all builds that
share a MACHINE_ARCH for userland so that except for etc, will produce
identical sets.

usr/include/machine now points to usr/include/arm
2013-05-02 03:56:38 +00:00
matt
f4b2142854 Make sure CPUFLAGS remains empty. 2013-03-29 17:01:00 +00:00
jkunz
bf9547b278 Contribution from Petri Laakso:
- Support for passing kernel arguments.
- entropy_init() removed as OLINUXINO doesn't generate entropy bits without
  user interaction.
- FIFO contents are flushed when DEBUG is enabled.
2013-02-23 16:22:38 +00:00
jkunz
f9de65ba47 Contribution from Petri Laakso:
Enable debug UART input
Fixes issue with some OLinuXino boards which were not able to
accept input from the user.
2013-02-07 21:56:36 +00:00
matt
7d29a57a1a gcc will supply -Wa,-eabi=gnu so don't include. Use -mabi=apcs-base, not atpcs 2013-02-06 07:19:19 +00:00
matt
5ad96da8cf Add a ${MKTARGET_LINK} 2013-02-05 07:28:48 +00:00
matt
3ba56103bd There are other little endian arm machine_arches other than "arm"
Use MACHINE_CPU and TARGET_ENDIANNESS instead of MACHINE_ARCH
2013-02-05 07:27:02 +00:00
matt
6ef84a1155 Make sure these are always compiled with -mabi=atpcs -mfloat-abi=soft
-Wa,-meabi=gnu so they use the old compilation methods.
2013-02-05 03:17:50 +00:00
jkunz
5379dc3878 Contribution from Petri Laakso.
Refactoring of bootimx23:
- Code style clean up.
- Don't do DCDC initialization in bootimx23. This has proven to be
  unreliable. DCDC initialization will be done in kernel later.
  Use linear regulators while booting to make bootimx23 reliable.
2012-12-16 19:08:44 +00:00
matt
bc2451cc8e Fix CPUFLAGS to the correct value so a passed down CPUFLAGS doesn't result
in broken images.
2012-12-12 15:08:44 +00:00
matt
28eb3810d9 Don't allow CPUFLAGS to be overridden. 2012-12-12 15:00:06 +00:00
jkunz
32c0cb2823 According to the i.MX23 Reference Manual section 3.1, Page 3-3:
"The i.MX23 always operates in litle-endian mode."
So build elftosb and bootloader for this processor only for evbarm(-el).
2012-11-27 20:00:38 +00:00
jkunz
1cd37b282a Give memory more time to power up. Avoids hangups. 2012-11-20 23:39:33 +00:00
jkunz
3e0822337d Adjust bootloader file name. 2012-11-20 21:36:35 +00:00
jkunz
da8587eaed Add initial support for Olimex iMX233 based OLinuXino boards.
https://www.olimex.com/Products/OLinuXino/iMX233/
Contributed by Petri Laakso.
2012-11-20 19:08:45 +00:00
chs
cbab9cadce split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
khorben
f7dfa50e40 Fixed build with USE_SSP=yes
ok christos@
2012-08-13 10:25:02 +00:00
matt
14a27ff97b Fix to allow EABI compilation.
Make sure to DISCARD new .ARM.attributes and .ARM.ebxidx sections.
2012-08-06 02:14:15 +00:00
matt
26d4a1b03a Add missing ${_MKTARGET_LINK} 2012-07-20 14:59:33 +00:00
matt
b710360beb Add <machine/int_mwgwtypes.h> include for intmax_t 2012-07-20 14:53:52 +00:00
matt
885157a5bc Add ${_MKTARGET_LINK} 2012-07-20 14:53:27 +00:00
skrll
b0ba536ed5 Whitespace. 2012-06-02 20:50:41 +00:00
nisimura
0364f063c5 - add short comments at the most troublesome part of this device.
- remove a stale debug line.
2012-02-23 22:20:51 +00:00
nisimura
815387e2a2 - detect SoC chipid value found at 0x5600'00b0.
- have brdsetup() to define SoC IOMUX in early startup. Device drivers
  are still responsible to arrange relevent registers which they use.
- some cleanup and clarification.
2012-02-22 12:21:23 +00:00
nisimura
9a6abed525 - adapt DM9000 driver name change.
- move -DLIBSA_PRINTF_WIDTH_SUPPORT to CPPFLAGS variable as SACPPFLAGS
  does not work.
- add a logic to make/remove machine/ and arm/ symlinks.
- remove redundant directives in no use.
2012-02-22 12:12:21 +00:00