alcatel-ttab: new device
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6422 [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
2504124b25
commit
1b69da9511
8 changed files with 3486 additions and 0 deletions
32
device/testing/device-alcatel-ttab/APKBUILD
Normal file
32
device/testing/device-alcatel-ttab/APKBUILD
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-alcatel-ttab
|
||||
pkgdesc="Alcatel Telekom Puls"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-alcatel-ttab
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="
|
||||
deviceinfo
|
||||
modules-initfs
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
d09d855601e2532ed751b800b912eadecadebfb7f621a65a717c1fb0936956b56e8cfa6cc7961da19daba44cae73f7fbabefd29badd46c9bdf88f0bb20c656a7 deviceinfo
|
||||
e70bae17df23dcaaaea0e2d3616556f04baa23f8ee1357785c0f539bf97282d8ddff53953e155b72689bb73beb38c2da3d08de2a61e866684edfa10a6593885d modules-initfs
|
||||
"
|
||||
29
device/testing/device-alcatel-ttab/deviceinfo
Normal file
29
device/testing/device-alcatel-ttab/deviceinfo
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Alcatel Telekom Puls"
|
||||
deviceinfo_manufacturer="Alcatel"
|
||||
deviceinfo_codename="alcatel-ttab"
|
||||
deviceinfo_year="2015"
|
||||
deviceinfo_arch="armv7"
|
||||
# deviceinfo_partition_type="msdos"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="tablet"
|
||||
deviceinfo_external_storage="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_kernel_cmdline="androidboot.hardware=mt8127"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_mtk_label_kernel="KERNEL"
|
||||
deviceinfo_mtk_label_ramdisk="ROOTFS"
|
||||
deviceinfo_header_version="0"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x04000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x00000100"
|
||||
64
device/testing/linux-alcatel-ttab/APKBUILD
Normal file
64
device/testing/linux-alcatel-ttab/APKBUILD
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm/configs/ttab_defconfig
|
||||
|
||||
pkgname=linux-alcatel-ttab
|
||||
pkgver=3.10.108
|
||||
pkgrel=0
|
||||
pkgdesc="Alcatel Telekom Puls kernel fork"
|
||||
arch="armv7"
|
||||
_carch="arm"
|
||||
_flavor="alcatel-ttab"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
makedepends="
|
||||
bash
|
||||
bc
|
||||
bison
|
||||
devicepkg-dev
|
||||
findutils
|
||||
flex
|
||||
openssl-dev
|
||||
perl
|
||||
ncurses
|
||||
"
|
||||
|
||||
# Source: backup of https://github.com/mt8127/android_kernel_alcatel_ttab
|
||||
_repository="android_kernel_alcatel_ttab"
|
||||
_commit="1795ea3c237773d32616954a03738d67d209a8d7"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/Error504TimeOut/$_repository/archive/$_commit.tar.gz
|
||||
$_config
|
||||
gcc8-fix-put-user.patch
|
||||
gcc10-extern_YYLOC_global_declaration.patch
|
||||
fix-check-lxdialog.patch
|
||||
fix-assembler-junk.patch
|
||||
"
|
||||
builddir="$srcdir/$_repository-$_commit"
|
||||
_outdir="out"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
. downstreamkernel_prepare
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
}
|
||||
|
||||
package() {
|
||||
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" \
|
||||
"$_flavor" "$_outdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
52fa47751c8b2a5e9f7b2a72a29dabc41a4363b1203b2c0b5e60c69c23fca5364abcd0c17958e585ef06b7ac76d67296b7922f899c70ea10b9932a3995a8385f linux-alcatel-ttab-1795ea3c237773d32616954a03738d67d209a8d7.tar.gz
|
||||
a553038f774ec27bca7069fa515e9f7a08c2b991c2146a61fce4c7b68de0359ba4dd9c9b55733d4d522e411fa18444e47a0f602fb880a114d12704c85cb32d0b config-alcatel-ttab.armv7
|
||||
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
|
||||
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
||||
f748320ebe3e630b37977b6ea9f09498251cbf27368a7851b0a514853df6ad85da90cd282f62de1fbe95c551d91db82279be13611867263f4bc8aac3398aef82 fix-check-lxdialog.patch
|
||||
341b1f6357d46b54e49afcc66b1d6052a954ec5be9b1cf5da47eed39ea3beff261d94c73d4b83532246b404f57abff1d0fa69db2f4c8cfb15b89f79aaab69bc8 fix-assembler-junk.patch
|
||||
"
|
||||
3264
device/testing/linux-alcatel-ttab/config-alcatel-ttab.armv7
Normal file
3264
device/testing/linux-alcatel-ttab/config-alcatel-ttab.armv7
Normal file
File diff suppressed because it is too large
Load diff
60
device/testing/linux-alcatel-ttab/fix-assembler-junk.patch
Normal file
60
device/testing/linux-alcatel-ttab/fix-assembler-junk.patch
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
diff -urpN a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S
|
||||
--- a/arch/arm/boot/compressed/head.S 2023-10-26 15:58:29.356796074 +0530
|
||||
+++ b/arch/arm/boot/compressed/head.S 2023-10-26 16:02:57.874378434 +0530
|
||||
@@ -114,7 +114,7 @@
|
||||
#endif
|
||||
.endm
|
||||
|
||||
- .section ".start", #alloc, #execinstr
|
||||
+ .section ".start", "ax"
|
||||
/*
|
||||
* sort out different calling conventions
|
||||
*/
|
||||
diff -urpN a/arch/arm/boot/compressed/piggy.gzip.S b/arch/arm/boot/compressed/piggy.gzip.S
|
||||
--- a/arch/arm/boot/compressed/piggy.gzip.S 2023-10-26 15:58:29.356796074 +0530
|
||||
+++ b/arch/arm/boot/compressed/piggy.gzip.S 2023-10-26 16:02:57.874378434 +0530
|
||||
@@ -1,4 +1,4 @@
|
||||
- .section .piggydata,#alloc
|
||||
+ .section .piggydata,"a"
|
||||
.globl input_data
|
||||
input_data:
|
||||
.incbin "arch/arm/boot/compressed/piggy.gzip"
|
||||
diff -urpN a/arch/arm/boot/compressed/piggy.lzma.S b/arch/arm/boot/compressed/piggy.lzma.S
|
||||
--- a/arch/arm/boot/compressed/piggy.lzma.S 2023-10-26 15:58:29.356796074 +0530
|
||||
+++ b/arch/arm/boot/compressed/piggy.lzma.S 2023-10-26 16:02:57.874378434 +0530
|
||||
@@ -1,4 +1,4 @@
|
||||
- .section .piggydata,#alloc
|
||||
+ .section .piggydata,"a"
|
||||
.globl input_data
|
||||
input_data:
|
||||
.incbin "arch/arm/boot/compressed/piggy.lzma"
|
||||
diff -urpN a/arch/arm/boot/compressed/piggy.lzo.S b/arch/arm/boot/compressed/piggy.lzo.S
|
||||
--- a/arch/arm/boot/compressed/piggy.lzo.S 2023-10-26 15:58:29.356796074 +0530
|
||||
+++ b/arch/arm/boot/compressed/piggy.lzo.S 2023-10-26 16:02:57.874378434 +0530
|
||||
@@ -1,4 +1,4 @@
|
||||
- .section .piggydata,#alloc
|
||||
+ .section .piggydata,"a"
|
||||
.globl input_data
|
||||
input_data:
|
||||
.incbin "arch/arm/boot/compressed/piggy.lzo"
|
||||
diff -urpN a/arch/arm/boot/compressed/piggy.xzkern.S b/arch/arm/boot/compressed/piggy.xzkern.S
|
||||
--- a/arch/arm/boot/compressed/piggy.xzkern.S 2023-10-26 15:58:29.356796074 +0530
|
||||
+++ b/arch/arm/boot/compressed/piggy.xzkern.S 2023-10-26 16:02:57.874378434 +0530
|
||||
@@ -1,4 +1,4 @@
|
||||
- .section .piggydata,#alloc
|
||||
+ .section .piggydata,"a"
|
||||
.globl input_data
|
||||
input_data:
|
||||
.incbin "arch/arm/boot/compressed/piggy.xzkern"
|
||||
diff -urpN a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S
|
||||
--- a/arch/arm/mm/proc-v7.S 2023-10-26 15:58:29.540797102 +0530
|
||||
+++ b/arch/arm/mm/proc-v7.S 2023-10-26 16:02:57.874378434 +0530
|
||||
@@ -383,7 +383,7 @@ __v7_setup_stack:
|
||||
string cpu_elf_name, "v7"
|
||||
.align
|
||||
|
||||
- .section ".proc.info.init", #alloc, #execinstr
|
||||
+ .section ".proc.info.init", "ax"
|
||||
|
||||
/*
|
||||
* Standard v7 proc info content
|
||||
35
device/testing/linux-alcatel-ttab/fix-check-lxdialog.patch
Normal file
35
device/testing/linux-alcatel-ttab/fix-check-lxdialog.patch
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
|
||||
index 844bc9da..911c6ba1 100644
|
||||
--- a/scripts/kconfig/Makefile
|
||||
+++ b/scripts/kconfig/Makefile
|
||||
@@ -192,6 +192,8 @@ clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h
|
||||
clean-files += mconf qconf gconf nconf
|
||||
clean-files += config.pot linux.pot
|
||||
|
||||
+HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
|
||||
+
|
||||
# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
|
||||
PHONY += $(obj)/dochecklxdialog
|
||||
$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog
|
||||
@@ -217,8 +219,6 @@ HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0`
|
||||
HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
|
||||
-Wno-missing-prototypes
|
||||
|
||||
-HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
|
||||
-
|
||||
HOSTLOADLIBES_nconf = $(shell \
|
||||
pkg-config --libs menu panel ncurses 2>/dev/null \
|
||||
|| echo "-lmenu -lpanel -lncurses" )
|
||||
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
|
||||
index 9d2a4c58..364eaecb 100644
|
||||
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
|
||||
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
|
||||
@@ -43,7 +43,7 @@ trap "rm -f $tmp" 0 1 2 3 15
|
||||
check() {
|
||||
$cc -x c - -o $tmp 2>/dev/null <<'EOF'
|
||||
#include CURSES_LOC
|
||||
-main() {}
|
||||
+int main() { return 0; }
|
||||
EOF
|
||||
if [ $? != 0 ]; then
|
||||
echo " *** Unable to find the ncurses libraries or the" 1>&2
|
||||
|
|
@ -0,0 +1 @@
|
|||
../../.shared-patches/linux/gcc10-extern_YYLOC_global_declaration.patch
|
||||
1
device/testing/linux-alcatel-ttab/gcc8-fix-put-user.patch
Symbolic link
1
device/testing/linux-alcatel-ttab/gcc8-fix-put-user.patch
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../../.shared-patches/linux/gcc8-fix-put-user.patch
|
||||
Loading…
Add table
Add a link
Reference in a new issue