History log of /device/google/contexthub/util/nanoapp_postprocess/postprocess.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
818edb87a006750d90ce63e798cd7ab48798e538 17-Dec-2016 Alexey Polyudov <apolyudov@google.com> postprocess: add application version injection into .napp header

Change-Id: I4f9db6a1882a53dfaf845c364bd2a6b9bb92368f
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
d489d84b219a2b635d30bd4314f6698fbffe98a8 03-Jun-2016 Alexey Polyudov <apolyudov@google.com> util: postprocess: remove support for elf, restructure relocation code

Change-Id: Ie6b4b52c3e26ca6abc2d5067b5f97290c50f7105
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
1cd0404c55558b8f4a82ff516233ffc0c15a38ea 02-Jun-2016 Brian Duddie <bduddie@google.com> postprocess: Support statically-linked ELF as input am: d850dda8b0
am: 11076cffed

* commit '11076cffedb9b4417606847b11af6cb23d455773':
postprocess: Support statically-linked ELF as input

Change-Id: I8a6909b1cf87a20d9d96372e2df6acc99cfe188b
d850dda8b0257ccf0c83345b24aa2d12b0fc0723 26-May-2016 Brian Duddie <bduddie@google.com> postprocess: Support statically-linked ELF as input

Merge functionality from the nanoapp_genbinary tool into
nanoapp_postprocess, to support parsing data directly from an ELF file
and handling relocs generated by statically linked nanoapps.

Bug: 28870324
Change-Id: I61d636229a5a4f50135a196db8c9ea1cc5165e6e
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
4e4405ea93607c7a55966969c5e84f62c80bc69f 27-May-2016 Alexey Polyudov <apolyudov@google.com> SQUASHME: contexthub: util: postprocess: fix MAC build am: 21b649b6c4 am: b391a2109d
am: 399b23203e

* commit '399b23203ef79e56a26888f9c4889b68e2df5c69':
SQUASHME: contexthub: util: postprocess: fix MAC build

Change-Id: Ie2664ddef2432c7050a1f493911bd633e672b70f
21b649b6c4e697945b4b8e794e403d9bdeffcb9e 27-May-2016 Alexey Polyudov <apolyudov@google.com> SQUASHME: contexthub: util: postprocess: fix MAC build

Change-Id: Idf72bdfcd1387205b83936a5c6a2e5e8bc260b2d
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
1c8cf6decb9780a4a945c28b95df1b978f4394ef 27-May-2016 Alexey Polyudov <apolyudov@google.com> Merge "contexthub: tools: fix build on MAC" into nyc-dev am: 41faa9ea74 am: ab9656db90
am: a79ed86b20

* commit 'a79ed86b2074be2ef178a7e022ad825e3e7f86a6':
contexthub: tools: fix build on MAC

Change-Id: Id8f66b1dfb28bec49d0ae76ae51f54afe6d398b6
29696c386ce5ecc7b049d4ec11355544495202e3 27-May-2016 Alexey Polyudov <apolyudov@google.com> contexthub: tools: fix build on MAC

Change-Id: I03d0a6ed8abc6d49f70c7135d600835ad2007332
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
0172764d47d4d177097d2bb17a3713708a2bd5cd 26-May-2016 Alexey Polyudov <apolyudov@google.com> Merge changes from topic \'nanohub-new-hal\' into nyc-dev am: 7cec66a380 am: d62fc8a55e
am: 218480a011

* commit '218480a011869398a25c89cff465627fb63fe476':
contexthub: util: update scripts to include support for new tools
contexthub: util: sign: make it aware of AOSP header
contexthub: util: encrypt: make it aware of AOSP header
contexthub: util: postprocess: add new style header generation support
nanohub: firmware: add AOSP header support
contexthub: firmware: BL: add OS image verify API call

Change-Id: I1077b3c0310ed47a883e910a03367fb5931b9c0b
729e368a69ec5629e0847f62006edbae580fa8c7 28-Apr-2016 Alexey Polyudov <apolyudov@google.com> contexthub: util: postprocess: add new style header generation support

Bug: 28265099
Change-Id: I47210da6eeb00c401d8d53c6ced19d997f947080
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
ad3665a3969a8f04152e4601f9f3f1ffd4cfcb56 24-May-2016 Adam Buchbinder <abuchbinder@google.com> Fix integer overflows caused by signed constants.

(C will assume that constants are signed if they fit in a signed type.)

This addresses the following cppcheck findings:
[contexthub/util/nanoapp_postprocess/postprocess.c:248]: (error)
Signed integer overflow for expression '2147483648+268435456'.
[contexthub/util/nanoapp_postprocess/postprocess.c:269]: (error)
Signed integer overflow for expression '2147483648+268435456'.
[contexthub/util/nanoapp_postprocess/postprocess.c:293]: (error)
Signed integer overflow for expression '2147483648+268435456'.
[contexthub/util/nanoapp_postprocess/postprocess.c:429]: (error)
Signed integer overflow for expression '2147483648+268435456'.

Change-Id: I124d085477675edbafe161ca14b70180ca4fb2dd
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
541222f0914dd0479eec9c2646ee27f60f648ed9 20-May-2016 Brian Duddie <bduddie@google.com> Revert "nanoapp_postprocess: Support static linkage"

This reverts commit 7fe013e991f7e1819f26235f0a09bf228ca51a53.

This change is no longer relevant due to associated build
tool changes.

Change-Id: Ib6a36ca0ed2768c6bf831b984b03a9d045db260b
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
7fe013e991f7e1819f26235f0a09bf228ca51a53 11-May-2016 Brian Duddie <bduddie@google.com> nanoapp_postprocess: Support static linkage

If no relocs are provided in the .bin (as is the case when it is
statically linked), then adjust the addresses in the header directly,
and generate nanorelocs by making a pass through the .data section.

Change-Id: I6258ec1d2eb34a7f35c4a8f4b4c6112777dd9057
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
0b5e7f5b10864057e914afc27c5a348c1976ecca 22-Mar-2016 Greg Kaiser <gkaiser@google.com> nanoapp_postprocess: Fix compiler warning.

We cast 'argc' to a uint32_t (after asserting that it's non-negative).
This avoids a warning about mixed sign comparisons, and allows us to
reuse 'i' as a loop counter later in this function.

Change-Id: Ic33d0c2da9817e6f4fd887dad7152ed597193e70
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
293f2660cc9ac05fbe39a2dfeb35cff0f9474119 22-Mar-2016 Greg Kaiser <gkaiser@google.com> nanoapp_postprocess: Whitespace changes.

We replace tabs with four spaces to be more consistent with the
rest of the code base. We also remove trailing whitespace from
a couple of lines.

Change-Id: I6143ac5f88fbd33123f159317d25cd890a14087c
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
29a28c40ccaa69b912f53e067b90a0ee3d7992db 04-Jan-2016 Ashutosh Joshi <ashutoshj@google.com> Adding AOSP Copyright notice.

Adding copyright blurb before making project open source.

Change-Id: I9bc27ead6f7f5545c92fceebf2c9129abb01ea4f
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
cc77708f80db23714a92638ddee64f59dbdf5483 15-Dec-2015 Dmitry Grinberg <dmitrygr@google.com> all: add app version slot in app header

Change-Id: I6f91713eb915dcb0e903b4b16603a2eb93537dab
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
4c2fefc0623c5ce2a0b2e71e3ed23533a89edbf7 15-Oct-2015 Dmitry Grinberg <dmitrygr@google.com> fix warning

Change-Id: Id36c0ade1e95bd9f63ace90d45d34cb07e310376
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
339944eb47b625cb631eac66845fd2bb8212f324 14-Oct-2015 Dmitry Grinberg <dmitrygr@google.com> misc: formatting and comment fixes

Change-Id: I6772cee4faf45885a441b8361799c84be5709345
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
d3747b013bc26ac4fd08531f06fdb19b5018ab14 14-Oct-2015 Dmitry Grinberg <dmitrygr@google.com> seos, nanoapp_postprocess: produce relocs in the new compact format, consume them as such too

This shrinks relocs for activity rec from 253 bytes to 12, and for an empty dummy
app from 12 bytes to 4

Change-Id: I267485e083eba1a2abb952471a2a977dcb011ed3
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
6502b394f8319a3fe01224dca4183c051fa5d647 13-Oct-2015 Dmitry Grinberg <dmitrygr@google.com> nanoapp_postprocess: Improve logging to be clearer

Change-Id: I86d40c4afbf520a48dffb1ca36d3b0b9bd75beee
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
8e1fc0da6eb4d8c7425c0ec42eaa15beef2da845 10-Jul-2015 Dmitry Grinberg <dmitrygr@google.com> nanoapp_postprocess: fix verbose display of flash use

Change-Id: I338d34a8b375cd0d0b9e30d4ba3fb27490ffafb6
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
d9132d0ca0db20154ae96488014b5bd53aa189cf 10-Jul-2015 Dmitry Grinberg <dmitrygr@google.com> nanoapp_postprocess: produce offsets instead of fake absolute addresses in the header

Change-Id: Ice087e461488a7e972d6ac3bee1b804492f139ce
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
bfb10794d54797b43df6bf841a77ae7be4446336 09-Jul-2015 Dmitry Grinberg <dmitrygr@google.com> nanoapp_postprocess: properly handle in-header flash-to-flash relocs

we just convert them to offsets and move on with our life

Change-Id: I60c6eb1508047d4bfb6b23d6617ef7c6ff9db264
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
09b2a5b281241583c73c30c6290eecfd2c7ac587 30-Jun-2015 Dmitry Grinberg <dmitrygr@google.com> util: use 4 bits for reloc type instead of 8

Change-Id: Icdc164171f0b4efbeb5f6e289618dddb0493a43c
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
d0a03e6d3b613db3bed51a704ea55fbee4bb2e8f 29-Jun-2015 Dmitry Grinberg <dmitrygr@google.com> Add app linker script for ARM cpu and update conversion app for it

Change-Id: If61ff2a4c7c6e27cbb4ac9af67ea8d9bab863204
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c
d0d5d4c74b98838d5774ae7c7f710ccbe2553929 23-Jun-2015 Dmitry Grinberg <dmitrygr@google.com> add nanoapp conversion tool

Change-Id: I38ca573713326f57abd6cc6ebc5787ba56d084d9
/device/google/contexthub/util/nanoapp_postprocess/postprocess.c