Attention Core Devs And Users

Official FreeEMS vanilla firmware development, the heart and soul of the system!
Post Reply
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Attention Core Devs And Users

Post by Fred »

Yes, that's just me, Sean0, and Preston! (for now, come on people, step up!)

Conditional compilation has been added for the following temporary reasons:

1) Preconfigured/tuned builds for core members who for any reason are building and burning often and require their code to actually work
2) XGATE development without affecting users who do not require XGATE functionality to run their engines.

Currently the following options are supported:

Build with XGATE enabled:

Code: Select all

CLIFLAGS="-D XGATE=1" make clean s19
Build with specific data, settings, scheduling, etc:

Code: Select all

CLIFLAGS="-D HOTEL=1" make clean s19
CLIFLAGS="-D PRESTO=1" make clean s19
CLIFLAGS="-D TRUCK=1" make clean s19
CLIFLAGS="-D SEANKLT1=1" make clean s19
CLIFLAGS="-D SEANKR1=1" make clean s19
If no arguments are passed, you get a non-XGATE firmware without any events scheduled.

Note, if you do:

Code: Select all

make s19
and then run one of the above, it will not build anything as the flags do not know about time stamps. Hence the clean target being included. You don't have to clean every time, but you do have to clean before the first time with a specific CLIFLAG argument or you will not get the desired result.

To get your data/config/settings/etc into the code base, you need to meet these requirements as found in the code:

Code: Select all

	/*&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*/
	/*&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& RULES FOR HAVING CONFIG IN THE CODE &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*/
	/*&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*/
	/*&&&&&&&&&&&&&&& you are building frequently, for a vehicle, and contributing dev time &&&&&&&&&&&&&&&&*/
	/*&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*/
All of these will be removed once we have a loader that can do partial loads, and a tuner that can do full configuration, with save and restore in a readable format. Give it six months, I guess.

Enjoy!

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Post Reply