AMD support part 2

This commit is contained in:
2025-04-23 03:08:09 -07:00
parent f38d992317
commit a03e3afc9d
21 changed files with 32 additions and 27 deletions

View File

@@ -114,7 +114,7 @@ EOF
esac
popd > /dev/null
log "End ${SUB_STAGE_DIR}/${i}-patches-${ARCH}"
elif [ -d "${i}-patches-arm-only" ]; then
elif [ -d "${i}-patches-arm-only" ] && [[ "${ARCH}" == "arm64" || "${ARCH}" == "armhf" ]]; then
log "Begin ${SUB_STAGE_DIR}/${i}-patches-arm-only"
pushd "${STAGE_WORK_DIR}" > /dev/null
if [ "${CLEAN}" = "1" ]; then
@@ -213,7 +213,7 @@ run_stage(){
unmount "${WORK_DIR}/${STAGE}"
if [ ! -f SKIP_IMAGES ]; then
if [ -f "${STAGE_DIR}/EXPORT_IMAGE" ]; then
if [ -f "${STAGE_DIR}/EXPORT_IMAGE" ] && [[ "${ARCH}" == "arm64" || "${ARCH}" == "armhf" ]]; then
EXPORT_DIRS="${EXPORT_DIRS} ${STAGE_DIR}"
fi
fi

View File

@@ -2,7 +2,3 @@
echo "${TARGET_HOSTNAME}" > "${ROOTFS_DIR}/etc/hostname"
echo "127.0.1.1 ${TARGET_HOSTNAME}" >> "${ROOTFS_DIR}/etc/hosts"
on_chroot << EOF
SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_net_names 1
EOF

View File

@@ -0,0 +1,5 @@
#!/bin/bash -e
on_chroot << EOF
SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_net_names 1
EOF

View File

@@ -12,13 +12,10 @@ ca-certificates curl
fake-hwclock nfs-common usbutils
dosfstools
dphys-swapfile
raspberrypi-sys-mods
pi-bluetooth
apt-listchanges
apt-file
usb-modeswitch
libpam-chksshpwd
rpi-update
libmtp-runtime
rsync
htop
@@ -28,8 +25,6 @@ ssh-import-id
ethtool
ntfs-3g
pciutils
rpi-eeprom
raspi-utils
udisks2
unzip zip p7zip-full
file

View File

@@ -1,5 +1,4 @@
01-useradd.diff
02-swap.diff
04-inputrc.diff
05-path.diff
07-resize-init.diff
03-inputrc.diff
04-path.diff

View File

@@ -0,0 +1,5 @@
raspberrypi-sys-mods
pi-bluetooth
rpi-update
rpi-eeprom
raspi-utils

View File

@@ -0,0 +1 @@
01-resize-init.diff

View File

@@ -2,7 +2,9 @@
install -m 755 files/resize2fs_once "${ROOTFS_DIR}/etc/init.d/"
install -m 644 files/50raspi "${ROOTFS_DIR}/etc/apt/apt.conf.d/"
if [[ "${ARCH}" == "arm64" || "${ARCH}" == "armhf" ]]; then
install -m 644 files/50raspi "${ROOTFS_DIR}/etc/apt/apt.conf.d/"
fi
install -m 644 files/console-setup "${ROOTFS_DIR}/etc/default/"

View File

@@ -1,4 +1,3 @@
wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek
raspberrypi-net-mods
network-manager
net-tools

View File

@@ -0,0 +1 @@
raspberrypi-net-mods

View File

@@ -4,7 +4,7 @@ desktop-base
git
gvfs
rfkill
firefox rpi-firefox-mods libwidevinecdm0
firefox libwidevinecdm0
gldriver-test
fonts-droid-fallback
fonts-liberation2

View File

@@ -0,0 +1 @@
rpi-firefox-mods

View File

@@ -1,10 +1,5 @@
#!/bin/bash -e
# Enable xcompmgr
on_chroot << EOF
raspi-config nonint do_xcompmgr 0
EOF
# polkit fixes
install -m 644 files/polkit-admin.conf "${ROOTFS_DIR}/etc/polkit-1/localauthority.conf.d/51-admin.conf"
@@ -43,11 +38,6 @@ on_chroot << EOF
SUDO_USER="${FIRST_USER_NAME}" dconf update
EOF
# Pi-Apps (this is a bash script that installs pi-apps when the user runs it, then gets overwritten by the actual pi-apps)
install -m 755 files/pi-apps "${ROOTFS_DIR}/usr/bin/pi-apps"
install -m 755 files/pi-apps.desktop "${ROOTFS_DIR}/usr/share/applications/pi-apps.desktop"
install -m 644 files/pi-apps-logo.png "${ROOTFS_DIR}/usr/share/icons/hicolor/256x256/apps/pi-apps.png"
# Remove setup user (only if it's not a system account)
on_chroot << EOF
#deluser --remove-home --remove-all-files ${FIRST_USER_NAME}

View File

@@ -0,0 +1,11 @@
#!/bin/bash -e
# Enable xcompmgr
on_chroot << EOF
raspi-config nonint do_xcompmgr 0
EOF
# Pi-Apps (this is a bash script that installs pi-apps when the user runs it, then gets overwritten by the actual pi-apps)
install -m 755 files/pi-apps "${ROOTFS_DIR}/usr/bin/pi-apps"
install -m 755 files/pi-apps.desktop "${ROOTFS_DIR}/usr/share/applications/pi-apps.desktop"
install -m 644 files/pi-apps-logo.png "${ROOTFS_DIR}/usr/share/icons/hicolor/256x256/apps/pi-apps.png"