AMD support part 2
This commit is contained in:
4
build.sh
4
build.sh
@@ -114,7 +114,7 @@ EOF
|
|||||||
esac
|
esac
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
log "End ${SUB_STAGE_DIR}/${i}-patches-${ARCH}"
|
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"
|
log "Begin ${SUB_STAGE_DIR}/${i}-patches-arm-only"
|
||||||
pushd "${STAGE_WORK_DIR}" > /dev/null
|
pushd "${STAGE_WORK_DIR}" > /dev/null
|
||||||
if [ "${CLEAN}" = "1" ]; then
|
if [ "${CLEAN}" = "1" ]; then
|
||||||
@@ -213,7 +213,7 @@ run_stage(){
|
|||||||
unmount "${WORK_DIR}/${STAGE}"
|
unmount "${WORK_DIR}/${STAGE}"
|
||||||
|
|
||||||
if [ ! -f SKIP_IMAGES ]; then
|
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}"
|
EXPORT_DIRS="${EXPORT_DIRS} ${STAGE_DIR}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@@ -2,7 +2,3 @@
|
|||||||
|
|
||||||
echo "${TARGET_HOSTNAME}" > "${ROOTFS_DIR}/etc/hostname"
|
echo "${TARGET_HOSTNAME}" > "${ROOTFS_DIR}/etc/hostname"
|
||||||
echo "127.0.1.1 ${TARGET_HOSTNAME}" >> "${ROOTFS_DIR}/etc/hosts"
|
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
|
|
||||||
|
5
stage1/02-net-tweaks/01-run-arm-only.sh
Executable file
5
stage1/02-net-tweaks/01-run-arm-only.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
on_chroot << EOF
|
||||||
|
SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_net_names 1
|
||||||
|
EOF
|
@@ -12,13 +12,10 @@ ca-certificates curl
|
|||||||
fake-hwclock nfs-common usbutils
|
fake-hwclock nfs-common usbutils
|
||||||
dosfstools
|
dosfstools
|
||||||
dphys-swapfile
|
dphys-swapfile
|
||||||
raspberrypi-sys-mods
|
|
||||||
pi-bluetooth
|
|
||||||
apt-listchanges
|
apt-listchanges
|
||||||
apt-file
|
apt-file
|
||||||
usb-modeswitch
|
usb-modeswitch
|
||||||
libpam-chksshpwd
|
libpam-chksshpwd
|
||||||
rpi-update
|
|
||||||
libmtp-runtime
|
libmtp-runtime
|
||||||
rsync
|
rsync
|
||||||
htop
|
htop
|
||||||
@@ -28,8 +25,6 @@ ssh-import-id
|
|||||||
ethtool
|
ethtool
|
||||||
ntfs-3g
|
ntfs-3g
|
||||||
pciutils
|
pciutils
|
||||||
rpi-eeprom
|
|
||||||
raspi-utils
|
|
||||||
udisks2
|
udisks2
|
||||||
unzip zip p7zip-full
|
unzip zip p7zip-full
|
||||||
file
|
file
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
01-useradd.diff
|
01-useradd.diff
|
||||||
02-swap.diff
|
02-swap.diff
|
||||||
04-inputrc.diff
|
03-inputrc.diff
|
||||||
05-path.diff
|
04-path.diff
|
||||||
07-resize-init.diff
|
|
||||||
|
5
stage2/01-sys-tweaks/01-packages-arm-only
Normal file
5
stage2/01-sys-tweaks/01-packages-arm-only
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
raspberrypi-sys-mods
|
||||||
|
pi-bluetooth
|
||||||
|
rpi-update
|
||||||
|
rpi-eeprom
|
||||||
|
raspi-utils
|
1
stage2/01-sys-tweaks/01-patches-arm-only/series
Normal file
1
stage2/01-sys-tweaks/01-patches-arm-only/series
Normal file
@@ -0,0 +1 @@
|
|||||||
|
01-resize-init.diff
|
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
install -m 755 files/resize2fs_once "${ROOTFS_DIR}/etc/init.d/"
|
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/"
|
install -m 644 files/console-setup "${ROOTFS_DIR}/etc/default/"
|
||||||
|
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek
|
wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek
|
||||||
raspberrypi-net-mods
|
|
||||||
network-manager
|
network-manager
|
||||||
net-tools
|
net-tools
|
||||||
|
1
stage2/02-net-tweaks/01-packages-arm-only
Normal file
1
stage2/02-net-tweaks/01-packages-arm-only
Normal file
@@ -0,0 +1 @@
|
|||||||
|
raspberrypi-net-mods
|
@@ -4,7 +4,7 @@ desktop-base
|
|||||||
git
|
git
|
||||||
gvfs
|
gvfs
|
||||||
rfkill
|
rfkill
|
||||||
firefox rpi-firefox-mods libwidevinecdm0
|
firefox libwidevinecdm0
|
||||||
gldriver-test
|
gldriver-test
|
||||||
fonts-droid-fallback
|
fonts-droid-fallback
|
||||||
fonts-liberation2
|
fonts-liberation2
|
||||||
|
1
stage3/00-install-packages/01-packages-arm-only
Normal file
1
stage3/00-install-packages/01-packages-arm-only
Normal file
@@ -0,0 +1 @@
|
|||||||
|
rpi-firefox-mods
|
@@ -1,10 +1,5 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
# Enable xcompmgr
|
|
||||||
on_chroot << EOF
|
|
||||||
raspi-config nonint do_xcompmgr 0
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# polkit fixes
|
# polkit fixes
|
||||||
install -m 644 files/polkit-admin.conf "${ROOTFS_DIR}/etc/polkit-1/localauthority.conf.d/51-admin.conf"
|
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
|
SUDO_USER="${FIRST_USER_NAME}" dconf update
|
||||||
EOF
|
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)
|
# Remove setup user (only if it's not a system account)
|
||||||
on_chroot << EOF
|
on_chroot << EOF
|
||||||
#deluser --remove-home --remove-all-files ${FIRST_USER_NAME}
|
#deluser --remove-home --remove-all-files ${FIRST_USER_NAME}
|
||||||
|
11
stage3/02-extras-fixes/01-run.sh
Executable file
11
stage3/02-extras-fixes/01-run.sh
Executable 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"
|
Reference in New Issue
Block a user