mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Add kindlehf target (#11986)
for kindles after fw 5.16.3 * Add kindlehf mk file * Update kodev to support kindlehf * Update OTAManager logic to support kindlehf
This commit is contained in:
2
base
2
base
Submodule base updated: f43f1830a9...88cd7b1b34
@@ -49,6 +49,12 @@ local ota_channels = {
|
||||
nightly = _("Development"),
|
||||
}
|
||||
|
||||
-- Try to detect Kindle running hardfp firmware
|
||||
function OTAManager:_isKindleHardFP()
|
||||
local util = require("util")
|
||||
return util.pathExists("/lib/ld-linux-armhf.so.3")
|
||||
end
|
||||
|
||||
-- Try to detect WARIO+ Kindle boards (i.MX6 & i.MX7)
|
||||
function OTAManager:_isKindleWarioOrMore()
|
||||
local cpu_hw = nil
|
||||
@@ -93,7 +99,9 @@ function OTAManager:getOTAModel()
|
||||
return "cervantes"
|
||||
elseif Device:isKindle() then
|
||||
if Device:isTouchDevice() or Device.model == "Kindle4" then
|
||||
if self:_isKindleWarioOrMore() then
|
||||
if self:_isKindleHardFP() then
|
||||
return "kindlehf"
|
||||
elseif self:_isKindleWarioOrMore() then
|
||||
return "kindlepw2"
|
||||
else
|
||||
return "kindle"
|
||||
|
||||
12
kodev
12
kodev
@@ -144,6 +144,7 @@ function kodev-fetch-thirdparty() {
|
||||
|
||||
SUPPORTED_TARGETS="
|
||||
kindle Compatible with all Kindle models >= Kindle4
|
||||
kindlehf Compatible with all Kindles with FW >= 5.16.3
|
||||
kindlepw2 With compiler optimizations for Kindle models >= Paperwhite 2
|
||||
kindle-legacy Needed only for Kindle2/3/DXG
|
||||
kobo
|
||||
@@ -228,6 +229,10 @@ ${SUPPORTED_TARGETS}"
|
||||
make TARGET=kindle
|
||||
assert_ret_zero $?
|
||||
;;
|
||||
kindlehf)
|
||||
make TARGET=kindlehf
|
||||
assert_ret_zero $?
|
||||
;;
|
||||
kindlepw2)
|
||||
make TARGET=kindlepw2
|
||||
assert_ret_zero $?
|
||||
@@ -346,6 +351,9 @@ ${SUPPORTED_TARGETS}"
|
||||
kindle)
|
||||
make TARGET=kindle clean
|
||||
;;
|
||||
kindlehf)
|
||||
make TARGET=kindlehf clean
|
||||
;;
|
||||
kindlepw2)
|
||||
make TARGET=kindlepw2 clean
|
||||
;;
|
||||
@@ -475,6 +483,10 @@ ${SUPPORTED_RELEASE_TARGETS}"
|
||||
kodev-build kindle
|
||||
make TARGET=kindle update
|
||||
;;
|
||||
kindlehf)
|
||||
kodev-build kindlehf
|
||||
make TARGET=kindlehf update
|
||||
;;
|
||||
kindlepw2)
|
||||
kodev-build kindlepw2
|
||||
make TARGET=kindlepw2 update
|
||||
|
||||
1
make/kindlehf.mk
Normal file
1
make/kindlehf.mk
Normal file
@@ -0,0 +1 @@
|
||||
include make/kindle.mk
|
||||
Reference in New Issue
Block a user