removed build-fxascg-push target due to possible RAM allocation issues

This commit is contained in:
Slyvtt 2023-03-25 09:08:25 +01:00 committed by Lephenixnoir
parent 45b207b150
commit 8574824b31
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
3 changed files with 22 additions and 30 deletions

4
bld
View file

@ -1,4 +1,4 @@
 PREFIX=$HOME/.local make -f giteapc.make configure PREFIX=$HOME/.local make -f giteapc.make configure
 make -C build install sudo make -C build install

View file

@ -30,6 +30,7 @@ fxconv_declare_assets(${ASSETS} ${ASSETS_fx} ${ASSETS_cg} WITH_METADATA)
add_executable(myaddin ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}}) add_executable(myaddin ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}})
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os) target_compile_options(myaddin PRIVATE -Wall -Wextra -Os)
target_link_options(myaddin PRIVATE -Wl,-Map=Build_Addin.map -Wl,--print-memory-usage)
target_link_libraries(myaddin Gint::Gint) target_link_libraries(myaddin Gint::Gint)
if("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G) if("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G)

View file

@ -41,10 +41,10 @@ ${R}fxsdk${n} ${R}build-cg-push${n} [${R}-c${n}] [${R}-s${n}] [${R}--${n}] \
are identical to other build commands. Typical workflows will always set -s are identical to other build commands. Typical workflows will always set -s
(which requires libusb support in fxlink). (which requires libusb support in fxlink).
${R}fxsdk${n} ${R}build-fx-as-cg${n} [${R}-c${n}] [${R}-s${n}] [${R}--${n}] \ ${R}fxsdk${n} ${R}build-fxascg${n} [${R}-c${n}] [${R}-s${n}] [${R}--${n}] \
[${g}<ARGS>${n}...] [${g}<ARGS>${n}...]
Builds the current project for fx-CG 50 from a code source initially Builds the current project for fx-CG 50 from a code source initially
targetting the fx-9860G. It will generate a .g3a add-in in lieu of a .g1a targetting the fx-9860G(II). It will generate a .g3a add-in in lieu of a .g1a
add-in. Upscaling of the screen will be performed to accomodate the higher add-in. Upscaling of the screen will be performed to accomodate the higher
resolution of the screen of the fx-CG 50 (396x224px) instead of one of the resolution of the screen of the fx-CG 50 (396x224px) instead of one of the
fx-9860G (128x64px). fx-9860G (128x64px).
@ -135,10 +135,10 @@ fxsdk_new_project() {
cp "$assets"/icon-cg-sel.png "$1"/assets-cg/icon-sel.png cp "$assets"/icon-cg-sel.png "$1"/assets-cg/icon-sel.png
echo "Created a new project $NAME (build system: $generator)." echo "Created a new project $NAME (build system: $generator)."
echo "Type 'fxsdk build-fx' or 'fxsdk build-cg' or 'fxsdk build-fx-as-cg'" echo "Type 'fxsdk build-fx' or 'fxsdk build-cg' or 'fxsdk build-fxascg'"
echo "to compile the program." echo "to compile the program."
echo "Type 'fxsdk build-cg-push' or 'fxsdk build-fx-as-cg-push' to compile" echo "Type 'fxsdk build-cg-push' to compile a bin to be send to"
echo "a bin to be send to Add-In Push by circuit10" echo "Add-In Push by circuit10"
} }
fxsdk_load_config() { fxsdk_load_config() {
@ -149,7 +149,7 @@ fxsdk_load_config() {
fxsdk_build() { fxsdk_build() {
[[ ! -e build-fx && ! -e build-cg ]] [[ ! -e build-fx && ! -e build-cg && ! -e build-fxascg ]]
none_exists=$? none_exists=$?
if [[ -e build-fx || $none_exists == 0 ]]; then if [[ -e build-fx || $none_exists == 0 ]]; then
@ -162,9 +162,9 @@ fxsdk_build() {
fxsdk_build_cg "$@" fxsdk_build_cg "$@"
fi fi
if [[ -e build-fx-as-cg || $none_exists == 0 ]]; then if [[ -e build-fxascg || $none_exists == 0 ]]; then
echo "$TAG Making into build-fx-as-cg" echo "$TAG Making into build-fxascg"
fxsdk_build_fx_as_cg "$@" fxsdk_build_fxascg "$@"
fi fi
} }
@ -177,11 +177,8 @@ fxsdk_build_cg() {
fxsdk_build_cg_push() { fxsdk_build_cg_push() {
fxsdk_build_in "cg-push" "FXCG50" "$@" fxsdk_build_in "cg-push" "FXCG50" "$@"
} }
fxsdk_build_fx_as_cg() { fxsdk_build_fxascg() {
fxsdk_build_in "fx-as-cg" "FX9860G_AS_CG" "$@" fxsdk_build_in "fxascg" "FX9860G_AS_CG" "$@"
}
fxsdk_build_fx_as_cg_push() {
fxsdk_build_in "fx-as-cg-push" "FX9860G_AS_CG" "$@"
} }
fxsdk_build_in() { fxsdk_build_in() {
@ -244,20 +241,20 @@ fxsdk_build_in() {
} }
fxsdk_send() { fxsdk_send() {
if [[ -e "build-fx" && ! -e "build-cg" ]]; then if [[ -e "build-fx" && ! -e "build-cg" && ! -e "build-fx-as-cg" ]]; then
fxsdk_send_fx fxsdk_send_fx
fi fi
if [[ -e "build-cg" && ! -e "build-fx" ]]; then if [[ -e "build-cg" && ! -e "build-fx" && ! -e "build-fx-as-cg" ]]; then
fxsdk_send_cg fxsdk_send_cg
fi fi
if [[ -e "build-fx-as-cg" && ! -e "build-fxascg" ]]; then if [[ -e "build-fxascg" && ! -e "build-fx" && ! -e "build-cg" ]]; then
fxsdk_send_fx_as_cg fxsdk_send_fxascg
fi fi
echo "either no or several platforms are targeted, use 'fxsdk send-fx' or" echo "either no or several platforms are targeted, use 'fxsdk send-fx' or"
echo "'fxsdk send-cg' or 'fxsdk send-fx-as-cg' to specify which calculator to send to." echo "'fxsdk send-cg' or 'fxsdk send-fxascg' to specify which calculator to send to."
} }
fxsdk_send_fx() { fxsdk_send_fx() {
@ -293,7 +290,7 @@ fxsdk_send_cg-push() {
fxlink -pw ${bin_files} fxlink -pw ${bin_files}
} }
fxsdk_send_fx-as-cg() { fxsdk_send_fxascg() {
echo "$TAG Installing for fx-CG using fxlink" echo "$TAG Installing for fx-CG using fxlink"
if ! command -v fxlink >/dev/null 2>&1; then if ! command -v fxlink >/dev/null 2>&1; then
echo "error: fxlink is not installed or not available" echo "error: fxlink is not installed or not available"
@ -304,9 +301,6 @@ fxsdk_send_fx-as-cg() {
fxlink -sw ${g3a_files} fxlink -sw ${g3a_files}
} }
fxsdk_send_fx-as-cg-push() {
fxsdk_send_cg-push
}
fxsdk_path() { fxsdk_path() {
case "$1" in case "$1" in
@ -341,11 +335,8 @@ case "$1" in
fxsdk_build_cg "${@:2}";; fxsdk_build_cg "${@:2}";;
"build-cg-push"|"bcgp") "build-cg-push"|"bcgp")
fxsdk_build_cg_push "${@:2}";; fxsdk_build_cg_push "${@:2}";;
"build-fx-as-cg"|"bfxcg"|"bfcg") "build-fxascg"|"bfxcg"|"bfcg")
fxsdk_build_fx_as_cg "${@:2}";; fxsdk_build_fxascg "${@:2}";;
"build-fx-as-cg-push"|"bfxcgp"|"bfcgp")
fxsdk_build_fx_as_cg_push "${@:2}";;
# Install # Install
"send"|"s") "send"|"s")