File tree 4 files changed +18
-1
lines changed
4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Configuration settings
2
2
DISTRO_CODE? =pop-os
3
3
DISTRO_VERSION? =24.04
4
- DISTRO_ARCH? =$(shell dpkg --print-architecture)
4
+ # DISTRO_ARCH?=$(shell dpkg --print-architecture)
5
+ DISTRO_ARCH? =arm64
5
6
6
7
DISTRO_EPOCH? =$(shell date +% s)
7
8
DISTRO_DATE? =$(shell date +% Y% m% d)
Original file line number Diff line number Diff line change 6
6
DISTRO_VOLUME_LABEL =$(DISTRO_NAME ) $(DISTRO_VERSION ) $(DISTRO_ARCH )
7
7
endif
8
8
9
+ ifeq ($(DISTRO_ARCH ) ,arm64)
10
+ DISTRO_PARAMS+ =\
11
+ arm64.nopauth \
12
+ clk_ignore_unused \
13
+ cma=128M \
14
+ efi=novamap \
15
+ fw_devlink=off \
16
+ pd_ignore_unused \
17
+ rd.driver.blacklist=msm
18
+ else
9
19
# Show splash screen
10
20
# TODO DISTRO_PARAMS+=quiet splash
21
+ endif
11
22
12
23
GNOME_INITIAL_SETUP_STAMP =21.04
13
24
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ set timeout_style=menu
38
38
39
39
menuentry " Try or Install DISTRO_NAME" --class DISTRO_CODE {
40
40
set gfxpayload =keep
41
+ devicetree /dtb/qcom/x1e80100-crd.dtb
41
42
linux /CASPER_PATH/vmlinuz.efi boot =casper live-media-path =/CASPER_PATH hostname =DISTRO_CODE username =DISTRO_CODE noprompt DISTRO_PARAMS ---
42
43
initrd /CASPER_PATH/initrd.gz
43
44
}
Original file line number Diff line number Diff line change @@ -162,6 +162,10 @@ else ifeq ($(DISTRO_ARCH),arm64)
162
162
mkdir -p "$(BUILD)/iso/boot/grub/arm64-efi"
163
163
cp "$(BUILD)/pool/usr/lib/grub/arm64-efi/"*.mod "$(BUILD)/iso/boot/grub/arm64-efi/"
164
164
165
+ # Copy devicetree files
166
+ rm -rf "$(BUILD)/iso/dtb"
167
+ cp -r "$(BUILD)/chroot/usr/lib/firmware/"*"/device-tree" "$(BUILD)/iso/dtb"
168
+
165
169
endif
166
170
167
171
touch "$@"
You can’t perform that action at this time.
0 commit comments