Commit graph

64 commits

Author SHA1 Message Date
Andree Buschmann
5d849a963e Clean up multiple definitions of RAM size. Remove -DMEM (make) and MEM (code), use the already defined MEMORYSIZE instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29189 a1c6a512-1295-4272-9138-f99709370657
2011-02-02 17:43:32 +00:00
Antoine Cellerier
a448d8bac7 Android build tweaks.
Add make install target for android builds.
Remove standard install targets as they don't apply.
Add java compilation dependancy on generated resource class(es?) to prevent weird runtime issues.
Update installApk.sh script to use correct tool location in recent sdks.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29131 a1c6a512-1295-4272-9138-f99709370657
2011-01-24 17:06:04 +00:00
Michael Stummvoll
1f06ca41e8 Added the symlinkinstall make target. See #11825
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28915 a1c6a512-1295-4272-9138-f99709370657
2010-12-28 10:30:46 +00:00
Thomas Martitz
0bf1bd1d51 Redo r28026 so that all .S files get the __ASSEMBLER__ define.
Patch by Thomas Jarosch.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28913 a1c6a512-1295-4272-9138-f99709370657
2010-12-27 17:27:59 +00:00
Thomas Martitz
a994401294 Extend make clean for android zu also cleanup the compiled java classes and apks (and everything else generated during build process).
This also seems to fix a problem with make apk on some machines. Thanks to Dustin Skoracki for helping to investigate.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28062 a1c6a512-1295-4272-9138-f99709370657
2010-09-12 16:35:02 +00:00
Thomas Martitz
f8381d9c39 Android: don't compile stubs.c and kill off libuisimulator entirely.
Seperate make rules in a almost empty android.make.
Also add forgotten powermgmt-android.c

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27977 a1c6a512-1295-4272-9138-f99709370657
2010-09-02 00:24:40 +00:00
Thomas Martitz
46454ac2a8 Move setjmp to lib and add setjmp for sh (imported from newlib) and compile it as separate library.
It's used by both, plugins and codecs, and sh/hwcodec doesn't compile codecs
so it doesn't fit into sources.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27869 a1c6a512-1295-4272-9138-f99709370657
2010-08-24 12:38:42 +00:00
Rafaël Carré
27c509fc55 makefiles
- some functions don't need to return their output, drop $(shell ... )
and prefix with $(SILENT), make V=1 will show the complete scripts being
run

- tweak make.dep generation: make the temporary file appear in root.make
  only, and remove a useless "real command", there is already a real
  command (mv)

- make addtargetdir.pl terminate its output with a newline ($(shell) did
  that for us)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27855 a1c6a512-1295-4272-9138-f99709370657
2010-08-21 18:07:12 +00:00
Michael Chicoine
c6bcd91e6c Fix message output for make install and make fullinstall
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27749 a1c6a512-1295-4272-9138-f99709370657
2010-08-08 00:03:08 +00:00
Thomas Martitz
9c0b2479f7 Rockbox as an application: add get_user_file_path().
For RaaA it evaluates user paths at runtime. For everything but codecs/plugins it will give the path under $HOME/.config/rockbox.org if write access is needed or if the file/folder in question exists there (otherwise it gives /usr/local/share/rockbox).
This allows for installing themes under $HOME as well as having config.cfg and other important files there while installing the application (and default themes) under /usr/local.

On the DAPs it's a no-op, returing /.rockbox directly.

Not converted to use get_user_file_path() are plugins themselves, because RaaA doesn't build plugins yet.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27656 a1c6a512-1295-4272-9138-f99709370657
2010-08-01 16:15:27 +00:00
Jonathan Gordon
2d31d77a8b FS#11470 - new skin code, finally svn uses the new parser from the theme editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27613 a1c6a512-1295-4272-9138-f99709370657
2010-07-29 12:37:48 +00:00
Rafaël Carré
a2029a7bee Revert r27550 : we don't want to generate dependancies for firmware/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27551 a1c6a512-1295-4272-9138-f99709370657
2010-07-25 15:22:47 +00:00
Rafaël Carré
f1140dcdfa include firmware.make unconditionally
checkwps and database tools need to find their way to our headers

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27550 a1c6a512-1295-4272-9138-f99709370657
2010-07-25 15:07:20 +00:00
Thomas Martitz
57613ea5fa Rename/change SIMVER to APP_TYPE in the Makefiles.
SIMVER was really only used to detect a simulator build. With APP_TYPE you can
now differentiate between simulator, application, checkwps and database builds.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27372 a1c6a512-1295-4272-9138-f99709370657
2010-07-10 13:49:49 +00:00
Frank Gevaerts
b8286d45be Move -Wl,-z,defs to GLOBAL_LDOPTS (instead of GCCOPTS), to avoid noise in older gcc output when not linking
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27260 a1c6a512-1295-4272-9138-f99709370657
2010-07-03 20:58:22 +00:00
Frank Gevaerts
94aa0d741e Change "features" and "genlang-features" targets to no longer use multiple targets in one rule.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27195 a1c6a512-1295-4272-9138-f99709370657
2010-06-30 16:29:55 +00:00
Björn Stenberg
936e673954 Moved libskin_parser to lib. Added it to link line.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27105 a1c6a512-1295-4272-9138-f99709370657
2010-06-24 11:47:37 +00:00
Rafaël Carré
8676723300 bininstall: works for PREFIX directories with spaces
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26961 a1c6a512-1295-4272-9138-f99709370657
2010-06-19 17:10:49 +00:00
Rafaël Carré
89eb19d30c make bininstall rule depend on the binary
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26959 a1c6a512-1295-4272-9138-f99709370657
2010-06-19 08:46:18 +00:00
Rafaël Carré
53367baedc new bininstall rule to install rockbox binary only
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26958 a1c6a512-1295-4272-9138-f99709370657
2010-06-19 08:43:53 +00:00
Rafaël Carré
23f1821419 don't parse features.txt when not needed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26957 a1c6a512-1295-4272-9138-f99709370657
2010-06-19 08:43:49 +00:00
Rafaël Carré
1da9b71992 make clean: delete lib/ directory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26955 a1c6a512-1295-4272-9138-f99709370657
2010-06-19 06:11:22 +00:00
Björn Stenberg
ccaec76d55 Added skin_parser library to build system.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26885 a1c6a512-1295-4272-9138-f99709370657
2010-06-17 11:10:00 +00:00
Rafaël Carré
5d236b2bfd Generate C file / header for svn version string
It's now easier to force rebuild of files depending on the svn revision

version.c/version.h are generated once with new tools/genversion.sh
Changes in the VCS are still not auto detected, so you'll have to remove
builddir/version.* if you want to change the string in your binaries

APPSVERSION is now called RBVERSION and is defined in the generated
header instead of being defined by the Makefiles
appsversion is now called rbversion (the plugin api number didn't change
since old modules are still binary compatible)

Change some bootloaders to use knwon-at-buildtime RBVERSION instead of
"%s" + rbversion

You'll need to run make clean to regenerate dependencies after the
removal of apps/version.h

To build binaries with a different version string, hand-edit
tools/version.sh or tools/genversion.sh (which calls the former)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26320 a1c6a512-1295-4272-9138-f99709370657
2010-05-27 09:41:46 +00:00
Jens Arnold
eef14e3b5b Filter out -g in PPCFLAGS. Some (older?) gcc versions add a comment when building dependency files and -g is present. The proper solution would be to make addtargetdir.pl handle (strip) comment lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25253 a1c6a512-1295-4272-9138-f99709370657
2010-03-20 08:53:27 +00:00
Yoshihisa Uchida
ec39c05519 tools/database: build process updates.
- buildable for Cygwin/MinGW.
- SDL cobfig is set by using SDL-config.
- metadata/*.c add automaticaly when database tool builds.
- bitmap files do not create when database tool builds.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24908 a1c6a512-1295-4272-9138-f99709370657
2010-02-25 12:28:30 +00:00
Maurus Cuelenaere
19204624a9 Fix parallel building
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24705 a1c6a512-1295-4272-9138-f99709370657
2010-02-16 21:55:42 +00:00
Maurus Cuelenaere
651b55488e make veryclean: remove tools/iaudio_bl_flash.[ch]
These are generated files by the build; at least "make veryclean" should
remove them.

Author: Junio C Hamano
Flyspray: FS#10967

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24664 a1c6a512-1295-4272-9138-f99709370657
2010-02-15 10:24:32 +00:00
Rafaël Carré
a9e2a7148f *.link: depends on config file where plugin buffer size is set
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24322 a1c6a512-1295-4272-9138-f99709370657
2010-01-24 15:32:23 +00:00
Rafaël Carré
4c01e05c63 Do not try to generate dependencies of lua files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24125 a1c6a512-1295-4272-9138-f99709370657
2009-12-30 13:30:32 +00:00
Dave Chapman
48430bfabd Move mktccboot from tools/ to rbutil/mktccboot/ - inspired by FS#10728 but with no functional changes to code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23382 a1c6a512-1295-4272-9138-f99709370657
2009-10-28 21:11:43 +00:00
Frank Gevaerts
6e11572e07 Make the database tool buildable from configure.
Also update the checkwps makefile to make checkwps builds not break


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22998 a1c6a512-1295-4272-9138-f99709370657
2009-10-07 16:54:15 +00:00
Thomas Martitz
022463b46c Repair build-all.sh and clean-all.sh.
Make it so that it runs ../configure and make for each target. This makes the wrapper-Makefile obsolete.
It moves the binaries to tools/checkwps/output. NOTE: Something is fishy with the creative players (it builds them, but can't move them), because the configure target name and modelname differs (not sure how to fix that).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22696 a1c6a512-1295-4272-9138-f99709370657
2009-09-13 15:24:59 +00:00
Björn Stenberg
ffaf24674d Fixed checkwps build warnings. Updated checkwps makefile to be closer to main.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22593 a1c6a512-1295-4272-9138-f99709370657
2009-09-01 14:53:37 +00:00
Maurus Cuelenaere
8bff564a7c Forgot a file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22457 a1c6a512-1295-4272-9138-f99709370657
2009-08-21 20:28:26 +00:00
Antoine Cellerier
ef0c9da7dd Don't mention having to run 'make reconf' when you're runing 'make reconf'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22111 a1c6a512-1295-4272-9138-f99709370657
2009-08-02 09:45:51 +00:00
Andrew Mahone
668a769ca4 Add new asmdefs mechanism for exporting information only available to the C compiler for use in asm files, and use it in arm jpeg idct. See apps/apps.make, apps/core_asmdefs.c, and apps/recorder/jpeg_idct_arm.S for details.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21831 a1c6a512-1295-4272-9138-f99709370657
2009-07-13 00:40:35 +00:00
Thomas Martitz
7ed1a5f120 Second try for make install for normal builds. Now differentiate better between "PREFIX not set" and "PREFIX not set, but also not needed". Also, recreate the PREFIX when running make reconf.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20694 a1c6a512-1295-4272-9138-f99709370657
2009-04-12 01:28:33 +00:00
Jonas Häggqvist
a2008f9bde Revert r20687 since it breaks make zip.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20692 a1c6a512-1295-4272-9138-f99709370657
2009-04-11 23:20:09 +00:00
Jens Arnold
ac0722da74 Fix 'make fullinstall'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20689 a1c6a512-1295-4272-9138-f99709370657
2009-04-11 21:29:40 +00:00
Thomas Martitz
7e67dc6ac7 "make (full)install" for normal builds, specifiy the installation destination with PREFIX (e.g. PREFIX=/mnt/my_dap ../tools/configure). PREFIX not needed for sims, as it defaults to simdisk although PREFIX can override simdisk/. Use zip -r0 for install, and -r9 for for actual zips.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20687 a1c6a512-1295-4272-9138-f99709370657
2009-04-11 17:45:11 +00:00
Thomas Martitz
64f4b87a72 Let make bin create rockbox-info.txt too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20609 a1c6a512-1295-4272-9138-f99709370657
2009-04-03 13:44:47 +00:00
Maurus Cuelenaere
cf31386aa1 Commit FS#9614 by Yoshihisa Uchida: fix 'make tools'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20289 a1c6a512-1295-4272-9138-f99709370657
2009-03-11 16:13:46 +00:00
Jens Arnold
08f51a52e3 Don't rebuild the dependency file on 'make reconf'. Build type and target won't change, and there are some build types where the .dep file isn't needed at all, e.g. voice.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20282 a1c6a512-1295-4272-9138-f99709370657
2009-03-10 19:06:14 +00:00
Tom Ross
4fb5864a6c Move generated lang-related files to their own directory in preparation of localizable plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20170 a1c6a512-1295-4272-9138-f99709370657
2009-03-02 06:13:18 +00:00
Daniel Stenberg
2e6d604bb6 Stop hiding errors by redirecting stderr to /dev/null. If we really need to do re-introduce somewhere we should rather make it dependent on the V variable so that make V=1 would still show the error and only "normal" builds would hide it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20090 a1c6a512-1295-4272-9138-f99709370657
2009-02-23 08:45:16 +00:00
Maurus Cuelenaere
e8da447729 Commit FS#9494 by Yoshihisa Uchida: add support for building the simulators under Windows using MingW
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19923 a1c6a512-1295-4272-9138-f99709370657
2009-02-04 20:59:27 +00:00
Bertrik Sikken
31c8eee99d FS#9763 - Sansa Clip modified WPS. This modified wps avoids wps elements getting split over the yellow/cyan
parts of the display. Also introduces a mechanism for selecting a target specific wps if there is already 
another wps with the same screen size.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19889 a1c6a512-1295-4272-9138-f99709370657
2009-01-31 12:23:35 +00:00
Björn Stenberg
6d871d53a3 Don't rerun configure automatically, just inform that you should do it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19746 a1c6a512-1295-4272-9138-f99709370657
2009-01-10 22:36:41 +00:00
Björn Stenberg
fc53725fd8 Automatically rerun tools/configure if it is newer than Makefile.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19745 a1c6a512-1295-4272-9138-f99709370657
2009-01-10 22:23:27 +00:00