History log of /seL4-test-master/tools/seL4/cmake-tool/helpers/cpio.cmake
Revision Date Author Comments
# 9f904ed2 06-Mar-2020 Gerwin Klein <gerwin.klein@data61.csiro.au>

convert license headers to SPDX

Includes license review of 3rd-party files, adding missing upstream
headers, and moving the UNSW OZPLB license into its own file rather
than replicating it in the header.


# a0f4d06e 16-Dec-2019 Matthew <matt.phillips121@gmail.com>

Pass the target triple through when using clang

Whenever clang is invoked in a custom setting (not generated by CMake),
make sure to pass the triple as a flag


# 8008badd 18-Dec-2019 Curtis Millar <curtis.millar@data61.csiro.au>

Allow building CPIO with no files

MakeCPIO will now always produce a CPIO even when an empty list of files
is specified.


# d28f2df6 23-Sep-2019 Simon Shields <simon.shields@data61.csiro.au>

cpio: fix archive section name and align section

Keep the section name consistent with the old
way of creating the CPIO archive. Also make sure the
section is word-aligned on all architectures by aligning
to an 8 byte boundary.


# 53466182 23-Sep-2019 Simon Shields <simon.shields@data61.csiro.au>

Revert "revert: Revert recent CPIO changes"

This will be fixed

This reverts commit 86a49071f7ca78038f5b1b96248c362eb8edff3b.


# 86a49071 20-Sep-2019 Kent McLeod <Kent.Mcleod@data61.csiro.au>

revert: Revert recent CPIO changes

These changes fix an EABI reqirement for newer compilers, but still lead
to invalid elfloader images for some platform configurations.


# 69fbffd7 19-Sep-2019 Kent McLeod <Kent.Mcleod@data61.csiro.au>

cpio: Fix new cpio file importing strategy

- Use CMAKE_C_FLAGS when compiling the .S into a .o to pick up the
correct arch settings
- Remove the duplicate _archive_start and _archive_end symbols from
riscv's elfloader linker script.


# 747b083f 18-Sep-2019 Peter Chubb <Peter.Chubb@data61.csiro.au>

Fix cmake style in cpio.cmake

Now should pass the style checker.


# cd2b64c6 18-Sep-2019 Peter Chubb <Peter.Chubb@data61.csiro.au>

Replace tabs with spaces in cpio.cmake

For some reson the tools don't like tabs. Bitbucket doesn't display
them properly for instance. Get rid of the one I'd introduced.


# df9234ba 18-Sep-2019 Peter Chubb <Peter.Chubb@data61.csiro.au>

Fix breakage after EABI fix patch

The 'a' flag on the archive section got lost, meaning the whole
content of the built CPIO blob was put into a section that was
discarded on load. It turns out that the Sabre (at least) also needs
write access to the CPIO blob.

Also, IA32 and X86_64 use the same compiler; use the -m32 flag to
force 32-bit ELF output for IA32.


# 97c2291d 17-Sep-2019 Peter Chubb <Peter.Chubb@data61.csiro.au>

Fix ARM EABI mismatch with recent compilers

Recent (gcc-8 and above) compilers generate ARM EABI 5 files;
change the way we generate included binary blobs so they too are EABI 5.


# 4d7f43fa 30-Apr-2019 Kent McLeod <Kent.Mcleod@data61.csiro.au>

cmake-tool, cpio: Run --reproducible check once

The pattern in CMake is to run a command and cache the result so that
the command doesn't need to be run every time the build files are
reprocessed. We test for the existence of the cpio --reproducible flag
that suppresses meta data changes that prevent reproducible builds.
Additionally there will be an info message printed on build
initialisation if the flag isn't available.


# 40d42cb5 30-Apr-2019 Kent McLeod <Kent.Mcleod@data61.csiro.au>

CMake: Refactor helpers to be included on demand

As more helper files get added it becomes more expensive to include them
all in common.cmake. We instead add them to the CMAKE_MODULE_PATH and
allow them to be imported as CMake modules. Adding global include guards
allows them to be imported multiple times without processing every time.


# c85fda55 07-Apr-2019 Anna Lyons <Anna.Lyons@data61.csiro.au>

trivial: style this repo


# 8355e26e 18-Mar-2019 Yu Hou <Yu.Hou@data61.csiro.au>

cmake: fix shared 'temp' folder when MakeCPIO is used multiple times

when MakeCPIO is used more than once in a project with parallel building,
temps files for different cpio archives are stored in the same temp folder,
which could make 'rmdir temp' fail since other building processes' temp files
are still there. Simply extending the temp folder's name to temp_${output_name}
could resolve this issue.


# 0011841e 18-Mar-2019 Kent McLeod <Kent.Mcleod@data61.csiro.au>

cpio.cmake: Refactor if block to be more readable


# 4e8f02da 12-Mar-2019 Kent McLeod <Kent.Mcleod@data61.csiro.au>

cpio.cmake: Reset commands variable

Not resetting it before use can lead to random commands in the task.


# 31b03179 11-Mar-2019 Kent McLeod <Kent.Mcleod@data61.csiro.au>

cmake: Move cpio functions to own file