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:
1 parent
e1f2acf68f
commit
ab2f545075
4 files changed
+23
-2
No files matched your search
+1
-1
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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
include make/kindle.mk
|
||||
Reference in new issue
Block a user