diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2019-03-25 20:56:33 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2019-07-03 21:58:12 +0200 |
commit | 40f4d3cf0fea814e23de33db1f1f02ebe05292ab (patch) | |
tree | 4c83809ef1ec5ca5fc1ab800535615595c58996d /platform/x11/detect.py | |
parent | 57b2b275b402d28ea903f5e85d2cb7a470e8200a (diff) |
Add embedded PCK option to PC platforms
The basic point is as in 2.1 (appending the PCK into the executable), but this implementation also patches a dedicated section in the ELF/PE executable so that it matches the appended data perfectly.
The usage of integer types is simplified in existing code; namely, using plain `int` for small quantities.
Diffstat (limited to 'platform/x11/detect.py')
-rw-r--r-- | platform/x11/detect.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 9614104750..9f0e0b20f1 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -324,6 +324,9 @@ def configure(env): if env["execinfo"]: env.Append(LIBS=['execinfo']) + + if not env['tools']: + env.Append(LINKFLAGS=['-T', 'platform/x11/pck_embed.ld']) ## Cross-compilation |