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) rm -rf $(INSTALL_DIR)
$(MAKE) -C $(KOR_BASE) clean $(MAKE) -C $(KOR_BASE) clean
# Don't bundle launchpad on touch devices..
ifeq ($(TARGET), kindle-legacy)
KINDLE_LEGACY_LAUNCHER:=launchpad
endif
kindleupdate: all kindleupdate: all
# ensure that the binaries were built for ARM # ensure that the binaries were built for ARM
file $(INSTALL_DIR)/koreader/luajit | grep ARM || exit 1 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)/libkohelper.sh $(INSTALL_DIR)/koreader
ln -sf ../../$(KINDLE_DIR)/kotar_cpoint $(INSTALL_DIR)/koreader ln -sf ../../$(KINDLE_DIR)/kotar_cpoint $(INSTALL_DIR)/koreader
# create new package # create new package
# Don't bundle launchpad on touch devices.. cd $(INSTALL_DIR) && pwd && \
ifeq ($(TARGET), kindle-legacy)
KINDLE_LEGACY_LAUNCHER:=launchpad
endif
cd $(INSTALL_DIR) && \
zip -9 -r \ zip -9 -r \
../koreader-kindle-$(MACHINE)-$(VERSION).zip \ ../koreader-kindle-$(MACHINE)-$(VERSION).zip \
extensions koreader $(KINDLE_LEGACY_LAUNCHER) \ 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: 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: 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 elseif dx_set[kindle_devcode] then
self.model = "Kindle2" self.model = "Kindle2"
elseif dxg_set[kindle_devcode] then elseif dxg_set[kindle_devcode] then
self.model = "Kindle2" self.model = "KindleDXG"
elseif k3_set[kindle_devcode] then elseif k3_set[kindle_devcode] then
self.model = "Kindle3" self.model = "Kindle3"
elseif k4_set[kindle_devcode] then elseif k4_set[kindle_devcode] then
@ -120,7 +120,7 @@ function Device:hasKeyboard()
if not isAndroid then if not isAndroid then
local model = self:getModel() local model = self:getModel()
self.has_keyboard = (model == "Kindle2") or (model == "Kindle3") self.has_keyboard = (model == "Kindle2") or (model == "Kindle3")
or util.isEmulated() or (model == "KindleDXG") or util.isEmulated()
else else
self.has_keyboard = ffi.C.AConfiguration_getKeyboard(android.app.config) self.has_keyboard = ffi.C.AConfiguration_getKeyboard(android.app.config)
== ffi.C.ACONFIGURATION_KEYBOARD_QWERTY == ffi.C.ACONFIGURATION_KEYBOARD_QWERTY

@ -456,6 +456,7 @@ function Input:init()
input.open("/dev/input/event2") input.open("/dev/input/event2")
elseif dev_mod == "KindleDXG" then elseif dev_mod == "KindleDXG" then
DEBUG("Auto-detected Kindle DXG") DEBUG("Auto-detected Kindle DXG")
input.open("/dev/input/event0")
input.open("/dev/input/event1") input.open("/dev/input/event1")
elseif dev_mod == "Kindle2" then elseif dev_mod == "Kindle2" then
DEBUG("Auto-detected Kindle 2") DEBUG("Auto-detected Kindle 2")

Loading…
Cancel
Save