Commit graph

40 commits

Author SHA1 Message Date
Jim Paris ba2792a70b Force linker to treat "_start" as undefined, so it pulls it in from src.a. 2010-09-25 17:48:28 -04:00
Jim Paris 744b4f4764 Fix typo, used wrong name for TARGETS_WITH_ROM_VARS.
Also makes the pretty print output specify whether we're linking
against romvars or not.
2010-09-24 18:27:14 -04:00
Jim Paris 0c163122da Pretty-print the output by default.
This makes it a lot easier to see what's going on, and let me find
some problems.  Use "make Q=" or set Q= blank in your user Makefile
to see the full commands.
2010-09-24 18:22:11 -04:00
Jim Paris 50306de9c3 Fix typo -- no ROMVARS for normal targets. 2010-09-24 18:06:36 -04:00
Jim Paris 0a41939407 Makefile cleanup.
This is an attempt to fix and cleanup all of the rules, and get rid of
some of the recursion.  We still need to invoke make several times
when we're building for more than one board, and some things can get a
bit weird when that happens, but it should generally work.  A single
BOARD=foo build should be fully correct, now.

I attempted to keep things compatible, so existing Makefiles that
include libmc1322x/Makefile.include should still work correctly.
2010-09-24 16:29:43 -04:00
Jim Paris 772fcb43c2 Allow parent makefile to override these variables 2010-09-18 15:56:31 -04:00
Mariano Alvira 18d898d967 fix typo in the usage 2010-04-08 12:17:21 -04:00
Mariano Alvira 7b8d97450a clean srecs 2010-03-19 09:10:19 -04:00
Mariano Alvira cb46d1eed7 clean ftditools 2010-03-16 21:58:27 -04:00
Mariano Alvira 0b507bb8be don't bail on make if you can't do a submodule update. 2010-03-16 20:24:32 -04:00
Mariano Alvira 7408b71868 make sure any submodules are updated 2010-03-16 10:48:29 -04:00
Mariano Alvira 6bf05a9280 fix board.a creation: only the first COBJ would get built and added to
board.a.
2010-03-13 07:43:44 -05:00
Mariano Alvira 85e26336a4 add PHONYs 2010-03-12 17:00:53 -05:00
Mariano Alvira d0ea93c741 Workaround DEFAULT_GOAL so that you can use older versions of make.
From Jim.
2010-03-12 16:51:49 -05:00
Mariano Alvira 73b2a0dfde make it work when COBJS is defined. 2010-03-11 16:31:21 -05:00
Mariano Alvira e06e2143d7 handle empty COBJS 2010-03-11 16:17:18 -05:00
Mariano Alvira da7898557d fix how board.a is created and linked 2010-03-11 12:22:47 -05:00
Mariano Alvira 017172577c make an empty board.a
this fixes errors when trying to build board.a when COBJS is empty.
2010-03-10 11:19:43 -05:00
Mariano Alvira bec0f1d477 correctly order the libs 2010-03-02 17:09:20 -05:00
Mariano Alvira 8bd9f182d4 link objects in as archives so only what we need gets linked.
Add an option to build objects without space resevered for rom calls.
2010-03-02 14:32:34 -05:00
Mariano Alvira 0187cfbf93 Now you can build targets with or without the reserved ROM var space. 2010-03-02 10:38:32 -05:00
Mariano Alvira d5b20ddce5 renamed libmc1322x to lib 2010-03-02 09:51:58 -05:00
Mariano Alvira 58561f5b71 build lib with thumb 2010-03-01 18:02:29 -05:00
Mariano Alvira 191e408bb7 auto-gen dependencies 2010-03-01 16:27:58 -05:00
Mariano Alvira ef5a7b57d5 clean the current directory also (incase mc1322x is a submodule) 2010-02-27 15:42:28 -05:00
Mariano Alvira 87cd9c7a36 update build system for board specific code that's 'local' to the
program you are building.

update tests to consolidate common code.
2010-02-26 14:04:10 -05:00
Mariano Alvira 9a8004c177 working on nvm-read.
fixed lib ordering on link command
2010-02-26 12:37:13 -05:00
Mariano Alvira 59dca22769 clean up default_vreg_init 2010-02-26 07:30:53 -05:00
Mariano Alvira bfe8814c90 makefile hints 2010-02-26 07:16:06 -05:00
Mariano Alvira f79c71153a now running just 'make' builds all the targets for all the boards. 2010-02-23 18:54:50 -05:00
Mariano Alvira dc9473a228 cleanup main makefile 2010-02-23 18:27:12 -05:00
Mariano Alvira 8ca9a0269e better variable defs.
touch objdir to fix problem where board.h would try to get created
after it's already been created.
2010-02-23 18:14:32 -05:00
Mariano Alvira 59391d7529 board.h works now 2010-02-23 15:53:00 -05:00
Mariano Alvira cd13c5daad set the default goal to be 'all' 2010-02-23 15:01:19 -05:00
Mariano Alvira cad32b268b clean up more 2010-02-22 19:01:18 -05:00
Mariano Alvira e88fad5cdd put object files in OBJDIR 2010-02-22 18:58:45 -05:00
Mariano Alvira afb39de8df add new base makefile 2010-02-22 12:24:56 -05:00
Mariano Alvira 4a77cb7d76 this is working kind of correctly.
need to clean it up, get the different boards going and add in the lib
build.
2010-02-22 12:19:39 -05:00
Mariano Alvira 1759ff01a0 getting there... 2010-02-21 18:47:12 -05:00
Mariano Alvira 5adb6413d7 Hi Mar. 2010-02-21 17:34:27 -05:00