|
@ -29,9 +29,6 @@ strip_flags := "--strip-unneeded" |
|
|
# Set this if you need to override it for a cross-compiling `sstrip` |
|
|
# Set this if you need to override it for a cross-compiling `sstrip` |
|
|
sstrip_bin := "sstrip" |
|
|
sstrip_bin := "sstrip" |
|
|
|
|
|
|
|
|
# Flags passed to [UPX](https://upx.github.io/) |
|
|
|
|
|
upx_flags := "--ultra-brute" |
|
|
|
|
|
|
|
|
|
|
|
# Example for OpenPandora cross-compilation |
|
|
# Example for OpenPandora cross-compilation |
|
|
# strip_bin = `echo $HOME/opt/pandora-dev/arm-2011.09/bin/pandora-strip` |
|
|
# strip_bin = `echo $HOME/opt/pandora-dev/arm-2011.09/bin/pandora-strip` |
|
|
|
|
|
|
|
@ -240,15 +237,11 @@ build-dist: |
|
|
{{strip_bin}} {{strip_flags}} "{{_rls_bin_path}}.stripped" |
|
|
{{strip_bin}} {{strip_flags}} "{{_rls_bin_path}}.stripped" |
|
|
@# Allow sstrip to fail because it can't be installed via "just install-deps" |
|
|
@# Allow sstrip to fail because it can't be installed via "just install-deps" |
|
|
{{sstrip_bin}} "{{_rls_bin_path}}.stripped" || true |
|
|
{{sstrip_bin}} "{{_rls_bin_path}}.stripped" || true |
|
|
@# Allow upx to fail in case the user wants to force no UPXing by leaving it uninstalled |
|
|
|
|
|
cp "{{_rls_bin_path}}.stripped" "{{_rls_bin_path}}.packed" |
|
|
|
|
|
upx {{upx_flags}} "{{_rls_bin_path}}.packed" || true |
|
|
|
|
|
@# Display the resulting file sizes so we can keep an eye on them |
|
|
@# Display the resulting file sizes so we can keep an eye on them |
|
|
@# (Separate `ls` invocations are used to force the display ordering) |
|
|
@# (Separate `ls` invocations are used to force the display ordering) |
|
|
@printf "\n--== Final Result ==--\n" |
|
|
@printf "\n--== Final Result ==--\n" |
|
|
@ls -1sh "{{_rls_bin_path}}" |
|
|
@ls -1sh "{{_rls_bin_path}}" |
|
|
@ls -1sh "{{_rls_bin_path}}.stripped" |
|
|
@ls -1sh "{{_rls_bin_path}}.stripped" |
|
|
@ls -1sh "{{_rls_bin_path}}.packed" |
|
|
|
|
|
@printf "\n" |
|
|
@printf "\n" |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -269,7 +262,6 @@ dist-supplemental: |
|
|
# Call `dist-supplemental` and `build-dist` and copy the packed binary to `dist/` |
|
|
# Call `dist-supplemental` and `build-dist` and copy the packed binary to `dist/` |
|
|
dist: build-dist dist-supplemental |
|
|
dist: build-dist dist-supplemental |
|
|
@# Copy the packed command to dist/ |
|
|
@# Copy the packed command to dist/ |
|
|
cp "{{ _rls_bin_path }}.packed" dist/{{ _pkgname }} || \ |
|
|
|
|
|
cp "{{ _rls_bin_path }}.stripped" dist/{{ _pkgname }} |
|
|
cp "{{ _rls_bin_path }}.stripped" dist/{{ _pkgname }} |
|
|
|
|
|
|
|
|
# -- Dependencies -- |
|
|
# -- Dependencies -- |
|
|