From cf0b5d4433b6486c8f76be1a92a00ea5bd936190 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Sat, 3 Aug 2019 11:47:58 -0400 Subject: remove amd-uc, remove aplay --- make | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'make') diff --git a/make b/make index 6d150ba..70c19f4 100755 --- a/make +++ b/make @@ -37,16 +37,8 @@ file /lib/firmware/rtl_nic/rtl8168h-2.fw /lib/firmware/rtl_nic/rtl8168h-2.fw 064 file /lib64/libnss_files.so.2 /lib64/libnss_files.so.2 0755 0 0 file /root/.ssh/authorized_keys $scriptdir/authorized_keys 0600 0 0 file /unlock $scriptdir/unlock 0755 0 0 -file /usr/share/alsa/cards/HDA-Intel.conf /usr/share/alsa/cards/HDA-Intel.conf 0644 0 0 -file /usr/share/alsa/cards/USB-Audio.conf /usr/share/alsa/cards/USB-Audio.conf 0644 0 0 -file /usr/share/sounds/ding.wav $scriptdir/ding.wav 0644 0 0 EOF - find /usr/share/alsa \ - \( -name cards -o -name speaker-test -o -name ucm -o -name topology \) -prune -o \ - -type f -print | while read f; do - printf 'file %s %s 0644 0 0\n' "$f" "$f" - done - for cmd in cryptsetup e2fsck aplay amixer dropbear; do + for cmd in cryptsetup e2fsck dropbear; do cmdp="$(command -v "$cmd")" # builtin if [ "$cmd" = "$cmdp" ]; then @@ -77,13 +69,15 @@ gen_dir_ents() { } gen_depfile() { - echo "initramfs.img: make" >&3 + deps='make' while read type target source args; do printf '%s %s %s %s\n' "$type" "$target" "$source" "$args" if [ "$type" = file ]; then - echo "initramfs.img: $source" >&3 + deps="$deps $source" + echo "$source:" >&3 fi done + echo "initramfs.img: $deps" >&3 } gen_cpio_list | gen_dir_ents | sort -u | gen_depfile 3>initramfs.d | "${scriptdir}"/gen_init_cpio -t 0 - | xz --x86 --lzma2=preset=9e --check=crc32 -c > initramfs.img -- cgit v1.2.3-54-g00ecf