path: root/tools/functions.make
AgeCommit message (Collapse)AuthorFilesLines
2019-07-28Use full_path_subst on more places, to avoid replacing the wrong occurrences inVencislav Atanasov1-1/+1
paths. If ROOTDIR=/rockbox and BUILDDIR=/rockbox/build-something, it is now possible to successfully build both target binaries and simulators. Change-Id: If12d1d5933c5a15feebf627a4f1636dc1e3a67fa
2018-12-25build: Properly generate build dependency for autogenerated bitmap .h filesSolomon Peachy1-0/+2
* bmp2rb generated a .h file that rockbox .c files used. * .h files in .c files were used to generate dependency graphs for make * When Make saw the .h file for the bitmap, it didn't know how what to do with them * Only arose in parallel builds Fixed this by adding explicit dependencies for the .h files as part of the existing 'bmpdepfile' function. Solves the Xduoo X3 bootloader build failure that I could trigger 100% of the time by using 'make -j8' Change-Id: I6b3e78dde26c820a3b6c7c286e7d6c981b8e01fc
2017-05-12Fix unsafe substitutions in Makefile.Amaury Pouly1-0/+15
Strange things can happen in the (unlikely) case that ROOTDIR=/rockbox Change-Id: I085f928fd859b307667e8fccf40b29a9c325f7ae
2012-05-03Add rbcodecplatform.h and rbcodecconfig.h.Sean Bartell1-1/+1
librbcodec users must provide these two files when the library is built. rbcodecconfig.h provides configuration #defines and basic types, and will be included by public librbcodec headers, so it must not conflict with the user's code. rbcodecplatform.h provides various OS functions, and will only be included by source files and private headers. This system is intended to provide maximum flexibility for use on embedded systems, where no operating system headers are included. Unix systems can just copy rbcodecconfig-example.h and rbcodecplatform-unix.h with minimal changes. Change-Id: I350a2274d173da391fd1ca00c4202e9760d91def Reviewed-on: Reviewed-by: Nils Wallménius <> Tested-by: Nils Wallménius <>
2012-04-04Refactor and unify objcopy calls in the build system. Also now properly ↵Thomas Martitz1-0/+14
handles DEBUG builds on hosted targets to keep debug symbols if necessary. Change-Id: I884031b79c6d49479e4d95752f35ced68872dd5d
2012-03-26build system: unify/simplify library handling a bit.Thomas Martitz1-0/+2
libs in $ROOT/lib now add to $(CORE_LIBS) and $(EXTRA_LIBS) and are automatically linked by the core and codecs/plugins respectively. Change-Id: Iff482c792a8c8142718f6a16a450c6e2f1497c9a
2011-08-13remove obsolete commentRafaël Carré1-4/+0
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-08-21makefilesRafaël Carré1-11/+9
- 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 terminate its output with a newline ($(shell) did that for us) git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-01-17change dependencies in make files:Teruaki Kawashima1-1/+1
* apps.make: depends on ctype.o instead of errno.o to depend on config-*.h so that it works for simulator. * lang.make: add dependency of lang.h to make it sure that the file is updated properly when needed. * plugins.make: object files don't depend on libpluginbitmaps.a. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-07-24Dependency generation now uses all cores on multi-core machines.Björn Stenberg1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-07-14Small fix for asmdefs, make sure $var is cleared the line after it is read, ↵Andrew Mahone1-1/+1
so that value *must* follow label immediately. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-07-14Handle sh and m68k compiler's output correctly in asmdefs2fileAndrew Mahone1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-07-13Add new asmdefs mechanism for exporting information only available to the C ↵Andrew Mahone1-0/+4
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:// a1c6a512-1295-4272-9138-f99709370657
2009-07-12Rework to also fix prefix generated-file depedencies with ↵Andrew Mahone1-9/+4
the target directory, and simplify the sed expression for mkdepfile. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-03-02Move generated lang-related files to their own directory in preparation of ↵Tom Ross1-2/+2
localizable plugins. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-02-04Commit FS#9494 by Yoshihisa Uchida: add support for building the simulators ↵Maurus Cuelenaere1-1/+1
under Windows using MingW git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-12-15Better file suffix replacement. Bug fix by Nils Wallménius. Closes FS #9644.Björn Stenberg1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-11-26Write dependencies to a temporary file until they are completed. This fixes ↵Björn Stenberg1-1/+1
the problem with an aborted dependency generation not being detected. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-11-25Added 'keywords' and 'eol-style' properties.Björn Stenberg1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-11-21Altered mkdepfile to use a single gcc call and post-process the output. This ↵Björn Stenberg1-6/+4
speeds up the dependency generation, especially in cygwin. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-11-21FS#9566: Change regex to make it work on old versions of sed.Björn Stenberg1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-11-20New makefile solution: A single invocation of 'make' to build the entire ↵Björn Stenberg1-0/+68
tree. Fully controlled dependencies give faster and more correct recompiles. Many #include lines adjusted to conform to the new standards. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657