Add kobov4 & kobov5 targets

kobov4 exists solely because there's a dedicated TC for it,
but we don't distribute binaries for it (it doesn't differ enough from
kobo, and experience has taught us that this kind of split was not a
great idea (e.g., kindle5 vs. kindlepw2)).

kobov5 targets a massively updated userland, and requires further
changes, including to the delivery mechanism, so it very much warrants a
dedicated package (re: #12401)
This commit is contained in:
NiLuJe
2024-09-28 21:15:11 +02:00
parent 521deb5f37
commit a6584e312d
5 changed files with 13 additions and 3 deletions

View File

@@ -978,6 +978,12 @@ function Kobo:init()
self:toggleKeyRepeat(false)
end
-- Switch to the proper packages on FW 5.x
-- NOTE: We don't distribute kobov4 binaries, the omission is on purpose.
if util.fileExists("/usr/bin/hwdetect.sh") then
self.ota_model = "kobov5"
end
-- Finally, Let Generic properly setup the standard stuff.
-- (Of particular import, this needs to come *after* we've set our input hooks, so that the viewport translation runs last).
Generic.init(self)

4
kodev
View File

@@ -141,6 +141,8 @@ TARGET:
kindlepw2 With compiler optimizations for Kindle models >= Paperwhite 2
kindle-legacy Needed only for Kindle2/3/DXG
kobo
kobov4 Compatible with Mk.7+ Kobo devices on FW 4.x
kobov5 Compatible with all Kobo & Tolino devices on FW 5.x
linux
macos MacOS app bundle
pocketbook
@@ -174,7 +176,7 @@ function setup_target() {
;;
cervantes) ;;
kindle | kindlehf | kindlepw2 | kindle-legacy) ;;
kobo) ;;
kobo | kobov4 | kobov5) ;;
pocketbook) ;;
remarkable) ;;
sony-prstux) ;;

View File

@@ -1,6 +1,6 @@
KOBO_DIR = $(PLATFORM_DIR)/kobo
KOBO_PACKAGE = koreader-kobo$(KODEDUG_SUFFIX)-$(VERSION).zip
KOBO_PACKAGE_OTA = koreader-kobo$(KODEDUG_SUFFIX)-$(VERSION).targz
KOBO_PACKAGE = koreader-$(DIST)$(KODEDUG_SUFFIX)-$(VERSION).zip
KOBO_PACKAGE_OTA = koreader-$(DIST)$(KODEDUG_SUFFIX)-$(VERSION).targz
update: all
# ensure that the binaries were built for ARM

1
make/kobov4.mk Normal file
View File

@@ -0,0 +1 @@
include make/kobo.mk

1
make/kobov5.mk Normal file
View File

@@ -0,0 +1 @@
include make/kobo.mk