45 Commits

Author SHA1 Message Date
Jared Boone
e3025e94ff Apparent fix for .dfu not being generated.
TODO: Does not address the fact that make continues despite the .dfu creation failure...
2014-02-18 17:05:53 -08:00
Jared Boone
9797512186 Rename ldscript to be the one and only M0 embedding .ld, reading from .text. 2014-02-18 16:48:21 -08:00
Jared Boone
dfd04e3c89 Change default Makefile target board to HACKRF_ONE. 2014-02-14 10:49:11 -08:00
Jared Boone
4aa3a3b553 Fix M0 ldscript breakage. 2014-02-14 10:47:05 -08:00
Jared Boone
ec508cadcd Fix relative path for libs and ldscripts in linking. 2014-01-12 14:51:54 -08:00
Jared Boone
bb8943ce5b Break ldscripts into smaller pieces that can be shared. 2014-01-11 17:38:27 -08:00
Jared Boone
10e379f492 Add ldscripts for LPC4320 targets (e.g. HackRF One).
Qualify Makefile ldscripts based on BOARD.
2014-01-11 15:52:38 -08:00
Jared Boone
80047c9a0c Makefile: Add separate OBJ_M4_S and OBJ_M0_S variables for .S files. (Unused, but worked earlier and may be useful later.) 2014-01-11 15:20:10 -08:00
Jared Boone
dbba407069 Change M0 linking to use newlib-nano. snprintf() is a pig when the floating point junk gets pulled in on an M0... 2014-01-02 15:11:15 -08:00
Jared Boone
45c0a6c31a Extract/isolate path details in Makefile_inc.mk. 2013-12-08 11:33:47 -08:00
Jared Boone
986e4dec93 Massive rework of Makefile_inc.mk, to support building of heterogeneous (M4+M0) binaries, and easy switching between RAM and SPIFI-bootable builds. Constructive criticism welcome -- I'm sure there's better ways to do this. 2013-11-20 15:28:28 -08:00
Jared Boone
6901107c7f Adjust Makefile_inc.mk to serve both M0 and M4 targets through the LPC43XX_TARGET variable. 2013-09-20 20:04:28 -07:00
Jared Boone
e2d4a501be Link floating point library and related/required libraries. 2013-09-20 15:08:23 -07:00
Jared Boone
322dea1884 Add make target for .s files. 2013-09-20 15:07:42 -07:00
Ben Gamari
1bbe375746 A few more changes due to the libopencm3 merge 2013-07-07 17:48:54 -04:00
Ben Gamari
98f30188c1 Ensure that LPC43XX is defined for libopencm3 2013-07-07 17:48:54 -04:00
Ben Gamari
8a529617e5 Build against libopencm3 submodule tree by default 2013-07-01 00:21:49 -04:00
Hoernchen
deafbab9fc lib: make sure to tell the linker that we're hardfloat, or it will choose the wrong libgcc.a... 2013-06-09 00:10:05 +02:00
Sylvain Munaut
472bcd414a firmware/build: Use gnu99 coding convention
C99 doesn't require/support anonymous struct/unions in some GCC versions
and those are used a lot.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-06-06 22:52:40 +02:00
Michael Ossmann
d2b35517b3 firmware version string 2013-02-23 10:22:58 -07:00
Michael Ossmann
653599ee9d test program to program CPLD from microcontroller 2013-02-16 07:23:04 -07:00
TitanMKD
13a6b9086e Fixed some makefile and set default BOARD to JAWBREAKER (instead of JELLYBEAN). 2013-02-10 18:33:01 +01:00
TitanMKD
a453d161ab Fix problem with ".data" section which was not included, now it include all loadable section defined in elf. 2012-11-10 00:36:58 +01:00
TitanMKD
b8ede43963 Fix problem with .bin generated without .data section (only .text) !! 2012-11-09 22:18:25 +01:00
Jared Boone
4cf0ba236d Extended common Makefile to include targets for DFU file generation and programming. 2012-10-13 12:29:03 -07:00
Jared Boone
57866227bf Remove weird LDSCRIPT that isn't necessary now.
Change .bin generation to include only ROM-able sections.
TODO: Is there a better way to do the objcopy? It'd be great to put everything in the "rom" region into the .bin, instead of having to list out -j section for each of the sections that go to ROM.
2012-10-13 11:37:54 -07:00
Jared Boone
3a9d7432c3 Changed compile optimization flag to -Os from -O2. TitanMKD demonstrated conclusively that it's a good thing. 2012-10-10 16:27:05 -07:00
Jared Boone
092c5b7b0f Removed removing of .usbram section from .bin file output. Because there's no more .usbram section! 2012-10-10 15:42:30 -07:00
Jared Boone
f68fdaba7a Add .usbram section handling to linker scripts and makefile. 2012-10-06 17:33:17 -07:00
Jared Boone
2932bb2bd4 I cocked-up backing out an unwanted change to CFLAGS which created badness in the Makefile_inc.mk file. 2012-06-13 18:13:26 -07:00
Jared Boone
d99533d112 Added C99 support to CFLAGS. It's been 13 years now... 2012-06-13 17:53:57 -07:00
TitanMKD
ba13c79a37 Added ROM to RAM code copy & exec => Warning requires latest version of libopencm3 !! 2012-06-10 11:46:55 +02:00
Michael Ossmann
077f4dece0 workaround that allows LIBOPENCM3 to point to either the source dir or the install dir 2012-06-07 20:11:33 -06:00
Michael Ossmann
31db86b5d5 finished cleaning up BINARY/TARGET mess 2012-06-07 19:40:31 -06:00
Jared Boone
f44bbdac13 Merge branch 'master' of https://github.com/TitanMKD/hackrf 2012-06-07 17:28:38 -07:00
TitanMKD
352b82f641 Fixed Clock Init (to be tested on other board). 2012-06-08 02:24:05 +02:00
Jared Boone
7501238ec2 Change use of Makefile BINARY to TARGET. 2012-06-07 16:55:06 -07:00
Jared Boone
823f6e6595 Corrected path for libopencm3 LDFLAGS and %.elf dependency. 2012-06-07 16:30:47 -07:00
Jared Boone
b434689250 Fixed typo in declaration of OBJ variable. 2012-06-07 16:27:51 -07:00
Jared Boone
fe9b6689d0 Added Emacs-style file type declaration. 2012-06-07 16:26:58 -07:00
Michael Ossmann
6ec040698c Makefile fixes 2012-06-07 10:25:42 -06:00
Michael Ossmann
2f344e97f8 Makefile fix to allow other binary names 2012-06-07 08:20:43 -06:00
Michael Ossmann
442cd1db95 make clean common directory 2012-06-07 08:18:54 -06:00
Michael Ossmann
aeced361cf migrated common stuff to libopencm3 2012-06-07 08:14:16 -06:00
Michael Ossmann
a748e31328 started firmware directory with some basic stuff 2012-05-21 11:33:46 -06:00