fix: various fixes for kindle dxg

pull/1018/head
Qingping Hou 10 years ago
parent 03bafa6145
commit c1c3bcb3fe

@ -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:

@ -1 +1 @@
Subproject commit f9a4560eebe61519d5cfecb00626c166fb64c306
Subproject commit a4191d33665e4a3c2a63b9d243913a12c9d7a890

@ -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")

Loading…
Cancel
Save