Commit Graph

283 Commits

Author SHA1 Message Date
CvH
6d67cfcbb9 Merge pull request #3745 from MilhouseVH/le10_buildsystem_fixup2
buildsystem: minor fixups
2019-08-17 10:18:15 +02:00
MilhouseVH
acd4e82417 meson cross-file: add libgcrypt-config support (needed by mpd)
https://github.com/MusicPlayerDaemon/MPD/pull/495
2019-08-14 14:25:03 +01:00
MilhouseVH
796a70f4dd config/functions: fix formatting with THREADCOUNT=0 2019-08-10 22:33:08 +01:00
MilhouseVH
a179bb511d config/functions: invert concurrency logic, more logical 2019-08-08 21:53:27 +01:00
Tomas Kelemen (vudiq)
48917868a7 safe_remove: remove also broken symbolic links
if the target ($1) is a symbolic link to a removed file/folder, the
check will fail and the (broken) symbolic link will be not removed.
2019-07-24 15:16:56 +01:00
MilhouseVH
46c5483f7d buildsystem: include BUILD_SUFFIX in dashboard 2019-07-10 05:23:39 +01:00
MilhouseVH
bdc8c3a6bb buildsystem: no need to source package for PKG_NAME 2019-07-09 10:37:21 +01:00
MilhouseVH
2bae815050 buildsystem: fix and relocate comment 2019-07-09 04:40:04 +01:00
MilhouseVH
3406ce9b7a buildsystem: support 6 digit process ids 2019-07-09 00:05:25 +01:00
MilhouseVH
9f7fb5f7e7 buildsystem: die if a kernel config is not available 2019-06-15 06:15:17 +01:00
MilhouseVH
7ee271342a Merge pull request #3524 from antonlacon/speed-flag
buildsystem: add "speed" flag for package building
2019-06-12 14:56:59 +01:00
MilhouseVH
fec79b5c13 config/functions: ln -sf is not always thread safe 2019-06-09 21:23:19 +01:00
MilhouseVH
aa7d22f05b buildsystem: avoid process forks to init dashboard status file
A typical image build will update the dashboard 3500-4500 times. This change
avoids two process forks (cat, wc) per update, and the remaining $(< file) is
faster than $(cat file).
2019-05-29 02:12:42 +01:00
MilhouseVH
cd0e70eb65 buildsystem: replace $(cat file) with faster alternative
See: https://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html

"
...
Bash performs the expansion by executing command in a subshell environment and replacing
the command substitution with the standard output of the command, with any trailing newlines
deleted. Embedded newlines are not deleted, but they may be removed during word splitting. The
command substitution $(cat file) can be replaced by the equivalent but faster $(< file).
"

Testing indicates var=$(< file) is twice as fast as var=$(cat file).
2019-05-29 01:04:45 +01:00
MilhouseVH
7bb5fefb42 buildsystem: addons install minor cleanup 2019-05-25 00:30:19 +01:00
Ian Leonard
c5e535505c buildsystem: add package flags to set compiler optimization
speed: use O3
size: use Os
default: use O2

The priority order is to use speed if set, then size, and fallback
to default when neither are set.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-05-21 01:00:29 +00:00
MilhouseVH
d25890b0c2 config/functions: endianness in meson cross is always little 2019-05-09 12:31:50 +01:00
Matthias Reichl
24e31c0fad config/functions: add C++ compiler and linker flags to meson.conf
Due to missing cpp_args and cpp_link_args in meson.conf ninja builds
of projects with C++ code were performed without CPU optimization
flags (-march, -mcpu, -mtune etc). Add these args so C++ code is
built with proper flags.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-04-29 12:43:41 +02:00
MilhouseVH
eb3752ae91 config/functions: remove owner when unlocking 2019-04-24 20:28:28 +01:00
MilhouseVH
c3913ab9ae config/functions: remove non-mt support in update_dashboard() 2019-04-24 04:56:39 +01:00
MilhouseVH
b272bcb999 config/functions: eliminate unecessary dashboard flock() 2019-04-23 03:56:22 +01:00
Christian Hewitt
20eaca6026 Merge pull request #2431 from Kwiboo/pkg-stamp
Add PKG_STAMP to trigger a package rebuild
2019-04-12 16:03:05 +04:00
Matthias Reichl
fdc31f7992 config/functions: build kernel with host pkg-config settings
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-04-03 14:09:02 +01:00
Matthias Reichl
142f59ab2c config/functions: factor out pkg-config setup into functions
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-04-03 14:09:02 +01:00
Jonas Karlman
ddb55a932a config/functions: rebuild package when PKG_STAMP has changed 2019-04-01 20:58:13 +00:00