summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2019-08-03 11:47:58 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2019-08-03 11:47:58 -0400
commitcf0b5d4433b6486c8f76be1a92a00ea5bd936190 (patch)
tree0ae76e5733ba3ca192156bbb1b4589aaeb553a32 /make
parentefd5d866be3cdb9c2b5b3221319fbc80aa0d039b (diff)
downloadminitramfs-cf0b5d4433b6486c8f76be1a92a00ea5bd936190.tar.xz
minitramfs-cf0b5d4433b6486c8f76be1a92a00ea5bd936190.zip
remove amd-uc, remove aplay
Diffstat (limited to 'make')
-rwxr-xr-xmake16
1 files changed, 5 insertions, 11 deletions
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