Skip to content

Commit

Permalink
buildinitrd.sh: Ensure Initrd/ actually exists, add LibLemon as a
Browse files Browse the repository at this point in the history
dependency for lemondoom
  • Loading branch information
fido2020 committed Jan 29, 2022
1 parent fe7ec3d commit a61ce6c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Ports/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ packages:
subdir: 'Ports'
tools_required:
- host-llvm
pkgs_required:
- liblemon
- liblemongui
- mlibc
configure:
- args: ['cp', '-r', '@THIS_SOURCE_DIR@/.', '@THIS_BUILD_DIR@']
build:
Expand Down
5 changes: 3 additions & 2 deletions Scripts/buildinitrd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ cd "$LEMOND"

set -e

cp Resources/* Initrd/
cp -L ~/.local/share/lemon/sysroot/system/lib/libc.so* ~/.local/share/lemon/sysroot/system/lib/libc++*.so* ~/.local/share/lemon/sysroot/system/lib/libunwind.so* ~/.local/share/lemon/sysroot/system/lib/ld.so* ~/.local/share/lemon/sysroot/system/lib/libfreetype.so* ~/.local/share/lemon/sysroot/system/lib/libpthread.so* ~/.local/share/lemon/sysroot/system/lib/librt.so* ~/.local/share/lemon/sysroot/system/lib/libdl.so* Initrd/ # Only copy crucial libraries
mkdir -p Initrd/
cp -ru Resources/* Initrd/
cp -L Build//sysroot/system/lib/libc.so* Build//sysroot/system/lib/libc++*.so* Build//sysroot/system/lib/libunwind.so* Build//sysroot/system/lib/ld.so* Build//sysroot/system/lib/libfreetype.so* Build//sysroot/system/lib/libpthread.so* Build//sysroot/system/lib/librt.so* Build//sysroot/system/lib/libdl.so* Initrd/ # Only copy crucial libraries
cp Build/sysroot/system/bin/lsh Initrd/ # Create a backup of LSh on the ramdisk for FTerm
cp Build/packages/lemon-utils/system/bin/* Initrd/ # Create a backup of LemonUtils on the ramdisk for FTerm

Expand Down
2 changes: 1 addition & 1 deletion mlibc

0 comments on commit a61ce6c

Please sign in to comment.