FreeCalypso > hg > freecalypso-tools
view loadtools/old/Loadtools-on-GTA0x @ 752:c79aaed75bd8
compile-fc-batt: allow possible third field in source lines
Battery tables maintained in the fc-battery-conf repository will now
have a third field added, defining thresholds for the battery bars icon,
and there will be a new utility to compile them into the new
/etc/batterytab2 file read by the FC Tourmaline version of our
FCHG driver. For backward compatibility with the original Magnetite
version of FCHG, compile-fc-batt remains the tool for compiling the
original /etc/batterytab file format, and it needs to ignore the
newly added third field in battery table sources.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 05 Nov 2020 20:37:55 +0000 |
parents | e1c13337f970 |
children |
line wrap: on
line source
FreeCalypso loadtools are currently a part of FC host tools, but they used to be a separate package. In those days that separate package of loadtools could be built in two ways: 1) One could compile and install loadtools on a general-purpose host system such as a GNU/Linux PC or laptop, and then potentially use them to operate on multiple Calypso targets of different kinds. 2) One could compile loadtools to run on the application processor of a smartphone such as Openmoko GTA0x, in which case it makes no sense for that special build of loadtools to support any target other than the specific modem in that smartphone. Loadtools can be built with compalstage support excluded and with GTA0x-specific modem power control included instead. This build will still include a bunch of functions of no relevance to GTA0x, but oh well.. To build loadtools for the GTA0x AP, you'll need to make the following modifications to loadtools/Makefile: * Change the CC= line to point to the appropriate cross-compiler (which you'll need to provide yourself). * Change the CFLAGS= line: add the right options to target the ARM920T core in the GTA0x AP (e.g., -march=armv4t -mtune=arm920t), and add -DGTA0x_AP_BUILD to enable some code that makes sense only when running on the GTA0x AP. * Change the PROGS= line to not build fc-compalram or fc-buzplay: the latter utilities are not applicable to GTA0x. * Change EXTRA_OBJ= from listing compalload.o to listing compaldummy.o and gtapower.o instead. See loadtools/gta-ap-build.sed for an example.