mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix: various fixes for kindle dxg
This commit is contained in:
10
Makefile
10
Makefile
@@ -112,6 +112,10 @@ clean:
|
||||
rm -rf $(INSTALL_DIR)
|
||||
$(MAKE) -C $(KOR_BASE) clean
|
||||
|
||||
# Don't bundle launchpad on touch devices..
|
||||
ifeq ($(TARGET), kindle-legacy)
|
||||
KINDLE_LEGACY_LAUNCHER:=launchpad
|
||||
endif
|
||||
kindleupdate: all
|
||||
# ensure that the binaries were built for ARM
|
||||
file $(INSTALL_DIR)/koreader/luajit | grep ARM || exit 1
|
||||
@@ -124,11 +128,7 @@ kindleupdate: all
|
||||
ln -sf ../../$(KINDLE_DIR)/libkohelper.sh $(INSTALL_DIR)/koreader
|
||||
ln -sf ../../$(KINDLE_DIR)/kotar_cpoint $(INSTALL_DIR)/koreader
|
||||
# create new package
|
||||
# Don't bundle launchpad on touch devices..
|
||||
ifeq ($(TARGET), kindle-legacy)
|
||||
KINDLE_LEGACY_LAUNCHER:=launchpad
|
||||
endif
|
||||
cd $(INSTALL_DIR) && \
|
||||
cd $(INSTALL_DIR) && pwd && \
|
||||
zip -9 -r \
|
||||
../koreader-kindle-$(MACHINE)-$(VERSION).zip \
|
||||
extensions koreader $(KINDLE_LEGACY_LAUNCHER) \
|
||||
|
||||
@@ -69,7 +69,7 @@ To get and compile the source you must have `patch`, `wget`, `unzip`, `git`, `au
|
||||
|
||||
Ubuntu users may need to run:
|
||||
```
|
||||
sudo apt-get install build-essential libtool
|
||||
sudo apt-get install build-essential libtool gcc-multilib
|
||||
```
|
||||
|
||||
Cross compile toolchains are available for Ubuntu users through these commands:
|
||||
|
||||
2
base
2
base
Submodule base updated: f9a4560eeb...a4191d3366
@@ -55,7 +55,7 @@ function Device:getModel()
|
||||
elseif dx_set[kindle_devcode] then
|
||||
self.model = "Kindle2"
|
||||
elseif dxg_set[kindle_devcode] then
|
||||
self.model = "Kindle2"
|
||||
self.model = "KindleDXG"
|
||||
elseif k3_set[kindle_devcode] then
|
||||
self.model = "Kindle3"
|
||||
elseif k4_set[kindle_devcode] then
|
||||
@@ -120,7 +120,7 @@ function Device:hasKeyboard()
|
||||
if not isAndroid then
|
||||
local model = self:getModel()
|
||||
self.has_keyboard = (model == "Kindle2") or (model == "Kindle3")
|
||||
or util.isEmulated()
|
||||
or (model == "KindleDXG") or util.isEmulated()
|
||||
else
|
||||
self.has_keyboard = ffi.C.AConfiguration_getKeyboard(android.app.config)
|
||||
== ffi.C.ACONFIGURATION_KEYBOARD_QWERTY
|
||||
|
||||
@@ -456,6 +456,7 @@ function Input:init()
|
||||
input.open("/dev/input/event2")
|
||||
elseif dev_mod == "KindleDXG" then
|
||||
DEBUG("Auto-detected Kindle DXG")
|
||||
input.open("/dev/input/event0")
|
||||
input.open("/dev/input/event1")
|
||||
elseif dev_mod == "Kindle2" then
|
||||
DEBUG("Auto-detected Kindle 2")
|
||||
|
||||
Reference in New Issue
Block a user