2021-08-17 20:57:31 +02:00
|
|
|
FASTBOOT = 'fastboot'
|
2021-09-29 02:00:59 +02:00
|
|
|
FLASH_PARTS = {
|
|
|
|
'ROOTFS': 'rootfs',
|
|
|
|
'BOOTIMG': 'bootimg',
|
|
|
|
'LK2ND': 'lk2nd',
|
|
|
|
'QHYPSTUB': 'qhypstub',
|
|
|
|
}
|
2021-08-17 20:57:31 +02:00
|
|
|
EMMC = 'emmc'
|
|
|
|
EMMCFILE = 'emmc-file'
|
|
|
|
MICROSD = 'microsd'
|
|
|
|
LOCATIONS = [EMMC, EMMCFILE, MICROSD]
|
|
|
|
|
|
|
|
JUMPDRIVE = 'jumpdrive'
|
|
|
|
JUMPDRIVE_VERSION = '0.8'
|
|
|
|
|
|
|
|
BOOT_STRATEGIES = {
|
|
|
|
'oneplus-enchilada': FASTBOOT,
|
|
|
|
'xiaomi-beryllium-ebbg': FASTBOOT,
|
|
|
|
'xiaomi-beryllium-tianma': FASTBOOT,
|
|
|
|
'bq-paella': FASTBOOT,
|
|
|
|
}
|
|
|
|
|
|
|
|
DEVICES = {
|
2021-09-26 17:05:59 +02:00
|
|
|
'oneplus-enchilada': ['device-sdm845-oneplus-enchilada'],
|
|
|
|
'xiaomi-beryllium-ebbg': ['device-sdm845-xiaomi-beryllium-ebbg'],
|
|
|
|
'xiaomi-beryllium-tianma': ['device-sdm845-xiaomi-beryllium-tianma'],
|
|
|
|
'bq-paella': ['device-msm8916-bq-paella'],
|
2021-08-17 20:57:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
FLAVOURS = {
|
2021-09-29 02:00:59 +02:00
|
|
|
'barebone': {
|
2021-09-30 05:04:42 +02:00
|
|
|
'packages': [],
|
2021-09-29 02:00:59 +02:00
|
|
|
},
|
|
|
|
'debug-shell': {
|
2021-09-30 05:04:42 +02:00
|
|
|
'packages': ['hook-debug-shell'],
|
2021-09-29 02:00:59 +02:00
|
|
|
},
|
|
|
|
'gnome': {
|
|
|
|
'packages': ['gnome', 'archlinux-appstream-data', 'gnome-software-packagekit-plugin'],
|
2021-09-30 05:04:42 +02:00
|
|
|
'post_cmds': ['systemctl enable gdm'],
|
|
|
|
'size': 8,
|
2021-09-29 02:00:59 +02:00
|
|
|
},
|
2021-08-17 20:57:31 +02:00
|
|
|
}
|
2021-08-18 12:27:03 +02:00
|
|
|
|
|
|
|
REPOSITORIES = [
|
|
|
|
'boot',
|
|
|
|
'device',
|
|
|
|
'firmware',
|
|
|
|
'linux',
|
|
|
|
'main',
|
|
|
|
]
|
2021-09-17 17:56:01 +02:00
|
|
|
|
2021-10-01 18:25:42 +02:00
|
|
|
Arch = str
|
2021-09-17 17:56:01 +02:00
|
|
|
ARCHES = [
|
|
|
|
'x86_64',
|
|
|
|
'aarch64',
|
|
|
|
]
|
|
|
|
|
2021-09-22 02:32:03 +02:00
|
|
|
BASE_DISTROS = {
|
2021-09-17 17:56:01 +02:00
|
|
|
'x86_64': {
|
2021-09-22 02:32:03 +02:00
|
|
|
'repos': {
|
|
|
|
'core': 'http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch',
|
|
|
|
'extra': 'http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch',
|
|
|
|
'community': 'http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'aarch64': {
|
|
|
|
'repos': {
|
|
|
|
'core': 'http://mirror.archlinuxarm.org/$arch/$repo',
|
|
|
|
'extra': 'http://mirror.archlinuxarm.org/$arch/$repo',
|
|
|
|
'community': 'http://mirror.archlinuxarm.org/$arch/$repo',
|
|
|
|
'alarm': 'http://mirror.archlinuxarm.org/$arch/$repo',
|
|
|
|
'aur': 'http://mirror.archlinuxarm.org/$arch/$repo',
|
2021-09-26 17:17:53 +02:00
|
|
|
},
|
2021-09-17 17:56:01 +02:00
|
|
|
},
|
|
|
|
}
|
2021-09-29 16:54:26 +02:00
|
|
|
|
|
|
|
KUPFER_HTTPS = 'https://gitlab.com/kupfer/packages/prebuilts/-/raw/main/$repo'
|
2021-10-01 18:25:42 +02:00
|
|
|
|
|
|
|
DistroArch = TargetArch = Arch
|
|
|
|
|
|
|
|
GCC_HOSTSPECS: dict[DistroArch, dict[TargetArch, str]] = {
|
|
|
|
'x86_64': {
|
|
|
|
'x86_64': 'x86_64-pc-linux-gnu',
|
|
|
|
'aarch64': 'aarch64-linux-gnu',
|
|
|
|
},
|
|
|
|
'aarch64': {
|
|
|
|
'aarch64': 'aarch64-unknown-linux-gnu',
|
|
|
|
}
|
|
|
|
}
|
2021-10-02 06:35:51 +02:00
|
|
|
|
|
|
|
CROSSDIRECT_PKGS = ['crossdirect', 'qemu-user-static-bin', 'binfmt-qemu-static-all-arch']
|