Skip to content

Commit

Permalink
patch klippy to not perform the build-c_helper check
Browse files Browse the repository at this point in the history
  • Loading branch information
consp committed Feb 29, 2024
1 parent 4f28854 commit 7c3ac6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions build_scripts/buildroot_post_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ SCRIPT_DIR="$(dirname "$0")"
GIT_ROOT="$SCRIPT_DIR/.."
BUILDROOT="$GIT_ROOT/submodules/buildroot"
TARGET_ROOT="$1"
PATH=$PATH:$BUILDROOT/output/host/bin:$BUILDROOT/output/host

# move unwantend initscripts to init.o (optional)
mkdir -p $TARGET_ROOT/etc/init.o
Expand Down Expand Up @@ -65,7 +66,17 @@ else
fi

# install klippy pyhton sources
cp $SCRIPT_DIR/components/klipper/no-gcc-check.patch $GIT_ROOT/submodules/klipper
pushd $GIT_ROOT/submodules/klipper/
pushd klippy/chelper
make
popd
if patch -r - -b -N -p1 < no-gcc-check.patch;
then
log_info "Skipping patch, already applied"
else
log_info "Patch applied"
fi
cp -r klippy docs config README.md COPYING $TARGET_ROOT/root/printer_software/klipper/
create_version ./ > $TARGET_ROOT/root/printer_software/klipper/klippy/.version
popd
Expand Down
2 changes: 1 addition & 1 deletion submodules/buildroot

0 comments on commit 7c3ac6e

Please sign in to comment.