Commit Graph

274 Commits

Author SHA1 Message Date
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
CvH
f14df920b9 Merge pull request #3342 from MilhouseVH/le92_fixup_mysql
scripts/build: fix broken sym link after #3328
2019-03-07 00:04:26 +01:00
MilhouseVH
5f7fbed311 Merge pull request #3329 from lrusak/safe-remove
[RFC] add safe_remove to notify if a file doesn't exist
2019-03-06 23:02:02 +00:00
MilhouseVH
34670aaae7 config/functions: slightly more efficient package cache processing 2019-03-02 09:22:56 +00:00
MilhouseVH
6da44a3931 config/functions: maybe pedantic, but just in case append isn't thread-safe 2019-02-25 20:59:12 +00:00
Lukas Rusak
4811063c90 config/functions: add safe_remove to notify if a file doesn't exist 2019-02-25 09:37:54 -08:00
CvH
eef940cc5a Merge pull request #3319 from MilhouseVH/le10_mt_fixup2
buildsystem: more fixes as required
2019-02-18 20:53:23 +01:00
MilhouseVH
35266cf938 config/functions: discriminate lock ownership by job/seq not just job 2019-02-18 19:40:53 +00:00
MilhouseVH
95158167e9 buildsystem: fix debug broken by #3171 2019-02-14 19:41:22 +00:00
MilhouseVH
23c6529978 scripts/create_addon_mt: support building/installing addons with a single plan 2019-02-08 17:17:43 +00:00