Skip to content

Commit

Permalink
hopefully fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tombl committed Dec 30, 2024
1 parent 4550a76 commit 2c16cc2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions arch/wasm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ tools/wasm/src/build/sections.json: arch/wasm/sections.json
$(Q)mkdir -p tools/wasm/src/build
$(Q)cp $< $@

tools/wasm/src/build/initramfs_data.cpio: usr/initramfs_data.cpio
tools/wasm/src/build/initramfs_data.cpio: FORCE
$(Q)mkdir -p tools/wasm/src/build
$(Q)cp $< $@
$(Q)$(MAKE) usr/initramfs_data.o
$(Q)cp usr/initramfs_inc_data $@

define archhelp
echo '* tools/wasm - WebAssembly host library'
Expand Down
2 changes: 0 additions & 2 deletions usr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ compress-$(CONFIG_INITRAMFS_COMPRESSION_LZO) := lzo
compress-$(CONFIG_INITRAMFS_COMPRESSION_LZ4) := lz4
compress-$(CONFIG_INITRAMFS_COMPRESSION_ZSTD) := zstd

ifndef CONFIG_WASM
obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data.o

$(obj)/initramfs_data.o: $(obj)/initramfs_inc_data
endif

ramfs-input := $(CONFIG_INITRAMFS_SOURCE)
cpio-data :=
Expand Down
4 changes: 4 additions & 0 deletions usr/initramfs_data.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
in the ELF header, as required by certain architectures.
*/

#ifndef CONFIG_WASM

.section .init.ramfs,"a"
__irf_start:
.incbin "usr/initramfs_inc_data"
Expand All @@ -34,3 +36,5 @@ __initramfs_size:
#else
.long __irf_end - __irf_start
#endif

#endif

0 comments on commit 2c16cc2

Please sign in to comment.