Skip to content

Commit

Permalink
WIP support for snapdragon x elite
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Jun 11, 2024
1 parent 2cc7ef2 commit 46d7cc8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Configuration settings
DISTRO_CODE?=pop-os
DISTRO_VERSION?=24.04
DISTRO_ARCH?=$(shell dpkg --print-architecture)
#DISTRO_ARCH?=$(shell dpkg --print-architecture)
DISTRO_ARCH?=arm64

DISTRO_EPOCH?=$(shell date +%s)
DISTRO_DATE?=$(shell date +%Y%m%d)
Expand Down
13 changes: 12 additions & 1 deletion config/pop-os/24.04.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,19 @@ else
DISTRO_VOLUME_LABEL=$(DISTRO_NAME) $(DISTRO_VERSION) $(DISTRO_ARCH)
endif

ifeq ($(DISTRO_ARCH),arm64)
DISTRO_PARAMS+=\
arm64.nopauth \
clk_ignore_unused \
cma=128M \
efi=novamap \
fw_devlink=off \
pd_ignore_unused \
rd.driver.blacklist=msm
else
# Show splash screen
DISTRO_PARAMS+=quiet splash
endif

GNOME_INITIAL_SETUP_STAMP=21.04

Expand Down Expand Up @@ -67,7 +78,7 @@ endif
# Staging branches to use when building ISO.
# No values is the same as building from release
# `branch-name` is equivalent to `apt-manage add popdev:branch-name -y`
STAGING_BRANCHES=master
STAGING_BRANCHES=master linux-6.9.3

# Packages to have in live instance
LIVE_PKGS=\
Expand Down
1 change: 1 addition & 0 deletions data/grub/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ set timeout_style=menu

menuentry "Try or Install DISTRO_NAME" --class DISTRO_CODE {
set gfxpayload=keep
devicetree /dtb/qcom/x1e80100-crd.dtb
linux /CASPER_PATH/vmlinuz.efi boot=casper live-media-path=/CASPER_PATH hostname=DISTRO_CODE username=DISTRO_CODE noprompt DISTRO_PARAMS ---
initrd /CASPER_PATH/initrd.gz
}
4 changes: 4 additions & 0 deletions mk/iso.mk
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ else ifeq ($(DISTRO_ARCH),arm64)
mkdir -p "$(BUILD)/iso/boot/grub/arm64-efi"
cp "$(BUILD)/pool/usr/lib/grub/arm64-efi/"*.mod "$(BUILD)/iso/boot/grub/arm64-efi/"

# Copy devicetree files
rm -rf "$(BUILD)/iso/dtb"
cp -r "$(BUILD)/chroot/usr/lib/firmware/"*"/device-tree" "$(BUILD)/iso/dtb"

endif

touch "$@"
Expand Down

0 comments on commit 46d7cc8

Please sign in to comment.