diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-07-10 23:20:03 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-07-10 23:20:03 +0800 |
| commit | 48ef95c24e9ac3d11200b61af617a01b10b507d1 (patch) | |
| tree | 57f0e26ab98e795b19839b6eece98ca58a4b702d /usr/initramfs.S | |
| parent | b9ff206e6bd3f4d67851263a6f2acb5f575cf3b0 (diff) | |
| download | lume-48ef95c24e9ac3d11200b61af617a01b10b507d1.tar.gz lume-48ef95c24e9ac3d11200b61af617a01b10b507d1.tar.xz | |
build: introduce declarative non-recursive build graph
Diffstat (limited to 'usr/initramfs.S')
| -rw-r--r-- | usr/initramfs.S | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/usr/initramfs.S b/usr/initramfs.S new file mode 100644 index 0000000..fa21553 --- /dev/null +++ b/usr/initramfs.S @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +/* + * Embed the generated CPIO through the target assembler instead of converting + * it with `objcopy -I binary`. The resulting object inherits the target ABI + * attributes (notably RISC-V float ABI flags), which keeps both GNU ld and LLD + * strict-linking compatible. + */ + +#ifndef INITRAMFS_IMAGE +#error "INITRAMFS_IMAGE must name the generated CPIO archive" +#endif + + .section .init.ramfs, "a", @progbits + .balign 8 + .incbin INITRAMFS_IMAGE + |
