logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

pass1.kaem (1828B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2023 Richard Masters <grick23@gmail.com>
  3. # SPDX-License-Identifier: MIT
  4. set -ex
  5. mkdir build
  6. cd build
  7. ungz --file ${DISTFILES}/${pkg}.tar.gz --output ${pkg}.tar
  8. untar --file ${pkg}.tar
  9. cd ${pkg}
  10. mkdir -p build_generic/include/generated
  11. catm build_generic/include/generated/ext4_config.h ../../config/ext4_config.h
  12. cd blockdev/linux
  13. tcc -m32 -march=i386 -std=c89 -I../../include -I../../build_generic/include -I../../../tcc/tcc-0.9.27/include -DVERSION="\"1.0\"" -c file_dev.c
  14. cd ../../src
  15. alias cc="tcc -m32 -march=i386 -std=c89 -I../include -I../build_generic/include -I../../tcc/tcc-0.9.27/include"
  16. cc -c ext4.c
  17. cc -c ext4_balloc.c
  18. cc -c ext4_bcache.c
  19. cc -c ext4_bitmap.c
  20. cc -c ext4_block_group.c
  21. cc -c ext4_blockdev.c
  22. cc -c ext4_crc32.c
  23. cc -c ext4_debug.c
  24. cc -c ext4_dir.c
  25. cc -c ext4_dir_idx.c
  26. cc -c ext4_extent.c
  27. cc -c ext4_fs.c
  28. cc -c ext4_hash.c
  29. cc -c ext4_ialloc.c
  30. cc -c ext4_inode.c
  31. cc -c ext4_journal.c
  32. cc -c ext4_mbr.c
  33. cc -c ext4_mkfs.c
  34. cc -c ext4_super.c
  35. cc -c ext4_trans.c
  36. cc -c ext4_xattr.c
  37. cp ../../../files/make_fiwix_initrd.c make_fiwix_initrd.c
  38. tcc -m32 -march=i386 -std=c89 -I../include -I../build_generic/include -I../../tcc/tcc-0.9.27/include -DVERSION="\"1.0\"" -c make_fiwix_initrd.c
  39. tcc -m32 -o ${BINDIR}/make_fiwix_initrd ext4.o ext4_balloc.o ext4_bcache.o ext4_bitmap.o ext4_block_group.o ext4_blockdev.o ext4_crc32.o ext4_debug.o ext4_dir.o ext4_dir_idx.o ext4_extent.o ext4_fs.o ext4_hash.o ext4_ialloc.o ext4_inode.o ext4_journal.o ext4_mbr.o ext4_mkfs.o ext4_super.o ext4_trans.o ext4_xattr.o ../blockdev/linux/file_dev.o make_fiwix_initrd.o
  40. cd ../../..
  41. # Checksums
  42. if match x${UPDATE_CHECKSUMS} xTrue; then
  43. sha256sum -o ${pkg}.checksums \
  44. /usr/bin/make_fiwix_initrd
  45. cp ${pkg}.checksums ${SRCDIR}
  46. else
  47. sha256sum -c ${pkg}.checksums
  48. fi