summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2018-12-04 20:13:15 +0000
committerJavier Jardón <jjardon@gnome.org>2018-12-09 16:59:26 +0000
commit56c2c2cc1df78d04cb46e288db4cd75552f1c153 (patch)
tree8cbf81b89b6f6483ebdc35c98a440b0af9340ad8 /buildstream
parent2a0676c3bf607a95a41bd802839eaf677588bf79 (diff)
downloadbuildstream-56c2c2cc1df78d04cb46e288db4cd75552f1c153.tar.gz
buildstream/data/projectconfig.yaml: Remove default strip-binaries
They are too specific to be included by default Recommendation is if you are building in Linux is to use the ones begin used in the freedesktop-sdk project, for example See #645
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/data/projectconfig.yaml36
1 files changed, 3 insertions, 33 deletions
diff --git a/buildstream/data/projectconfig.yaml b/buildstream/data/projectconfig.yaml
index 4fe95a620..e9bdaa160 100644
--- a/buildstream/data/projectconfig.yaml
+++ b/buildstream/data/projectconfig.yaml
@@ -44,38 +44,8 @@ variables:
# Indicates the build installation directory in the sandbox
install-root: /buildstream-install
- # Arguments for tooling used when stripping debug symbols
- objcopy-link-args: --add-gnu-debuglink
- objcopy-extract-args: |
-
- --only-keep-debug --compress-debug-sections
-
- strip-args: |
-
- --remove-section=.comment --remove-section=.note --strip-unneeded
-
- # Generic implementation for stripping debugging symbols
- strip-binaries: |
-
- cd "%{install-root}" && find -type f \
- '(' -perm -111 -o -name '*.so*' \
- -o -name '*.cmxs' -o -name '*.node' ')' \
- -exec sh -ec \
- 'read -n4 hdr <"$1" # check for elf header
- case "$1" in
- %{install-root}%{debugdir}/*)
- exit 0
- ;;
- esac
- if [ "$hdr" != "$(printf \\x7fELF)" ]; then
- exit 0
- fi
- debugfile="%{install-root}%{debugdir}/$1"
- mkdir -p "$(dirname "$debugfile")"
- objcopy %{objcopy-extract-args} "$1" "$debugfile"
- chmod 644 "$debugfile"
- strip %{strip-args} "$1"
- objcopy %{objcopy-link-args} "$debugfile" "$1"' - {} ';'
+ # You need to override this with the commands specific for your system
+ strip-binaries: ""
# Generic implementation for reproducible python builds
fix-pyc-timestamps: |
@@ -196,4 +166,4 @@ shell:
# Command to run when `bst shell` does not provide a command
#
- command: [ 'sh', '-i' ] \ No newline at end of file
+ command: [ 'sh', '-i' ]