Skip to content

Commit

Permalink
we ballin
Browse files Browse the repository at this point in the history
  • Loading branch information
notmarek committed Jan 28, 2024
1 parent 1d5b2e4 commit 0f47e4b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
13 changes: 13 additions & 0 deletions gen-tc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Supported platforms:
kindle
kindle5
kindlepw2
kindlehf
kobo
nickel
remarkable
Expand Down Expand Up @@ -118,6 +119,12 @@ case $1 in
a01c29cd09bff34ec9913c41cb850fb9a61c3bf2 \
"arm-${1}-linux-gnueabihf"
;;
kindlehf)
Build_CT-NG \
https://github.com/NotMarek/crosstool-ng.git \
58e622ba27a43c119eaf3ac3ddf2f703bc7ba465 \
"arm-kindle-linux-gnueabihf"
;;
kindlepw2)
Build_CT-NG \
https://github.com/NiLuJe/crosstool-ng.git \
Expand Down Expand Up @@ -168,6 +175,9 @@ case $1 in
chmod a-w "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/lib/libhwconfig.so"
wget https://github.com/blchinezu/pocketbook-sdk/raw/5.17/FRSCSDK/arm-none-linux-gnueabi/sysroot/usr/lib/libbookstate.so \
-O "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/lib/libbookstate.so"
wget https://github.com/blchinezu/pocketbook-sdk/raw/5.17/SDK_481/arm-obreey-linux-gnueabi/sysroot/usr/lib/libncurses.so.5.9 \
-O "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/lib/libncurses.so.5.9"

chmod a-w "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/lib/libbookstate.so"
chmod a-w "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/lib"
chmod a+w "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/include"
Expand All @@ -192,7 +202,10 @@ case $1 in
chmod a-w "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/include/hwconfig.h"
wget https://github.com/blchinezu/pocketbook-sdk/raw/5.17/FRSCSDK/arm-none-linux-gnueabi/sysroot/usr/include/bookstate.h \
-O "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/include/bookstate.h"
wget https://github.com/blchinezu/pocketbook-sdk/raw/5.17/SDK_481/arm-obreey-linux-gnueabi/sysroot/usr/include/curses.h \
-O "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/include/curses.h"
chmod a-w "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/include/bookstate.h"
chmod a-w "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/include/curses.h"
chmod a-w "${HOME}/x-tools/arm-${1}-linux-gnueabi/arm-${1}-linux-gnueabi/sysroot/usr/include"
;;
bookeen)
Expand Down
18 changes: 15 additions & 3 deletions refs/x-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ case ${1} in
kindle5 | k4 | K4 | k5 | K5 )
KINDLE_TC="K5"
;;
khf | kinldehf | pw2hf )
KINDLE_TC="PW2HF"
;;
kindlepw2 | pw2 | PW2 )
KINDLE_TC="PW2"
;;
Expand Down Expand Up @@ -621,9 +624,18 @@ case ${KINDLE_TC} in

DEVICE_USERSTORE="/mnt/us"
;;
PW2 )
ARCH_FLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp -mthumb"
CROSS_TC="arm-kindlepw2-linux-gnueabi"
PW2 | PW2HF )
case ${KINDLE_TC} in
PW2 )
ARCH_FLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp -mthumb"
CROSS_TC="arm-kindlepw2-linux-gnueabi"
;;
PW2HF )
ARCH_FLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard -mthumb"

CROSS_TC="arm-kindlepw2-linux-gnueabihf"
;;
esac
TC_BUILD_DIR="${HOME}/Kindle/CrossTool/Build_${KINDLE_TC}"

# Export it for our CMakeCross TC file
Expand Down

0 comments on commit 0f47e4b

Please sign in to comment.