Debian Codegraph @

contrib/depends/packages/flatstart.mk

raw
1 package=flatstart
2 $(package)_version=a148fb86c30968eeb30dc6ac3384ad2a16690520
3 $(package)_download_path=https://github.com/tobtoht/ln-guix-store/archive/
4 $(package)_file_name=$($(package)_version).tar.gz
5 $(package)_sha256_hash=e9694fcda4f9fcb00374da7a439b881296c0ce67ea98ca44bf2830d1a364365b
6 $(package)_patches=main.c main.S
7
8 define $(package)_preprocess_cmds
9 cp -f $($(package)_patch_dir)/main.c $($(package)_patch_dir)/main.S .
10 endef
11
12 define $(package)_build_cmds
13 $($(package)_cc) -nostdlib -fno-unwind-tables -fno-asynchronous-unwind-tables -fdata-sections -Wl,--gc-sections -Wa,--noexecstack -fno-builtin -fno-stack-protector -static -o startup main.c main.S
14 endef
15
16 define $(package)_stage_cmds
17 mkdir -p $($(package)_staging_prefix_dir)/bin && \
18 cp startup $($(package)_staging_prefix_dir)/bin/
19 endef