Skip to content

Commit

Permalink
tls_wolfssl: Fix tarball generation
Browse files Browse the repository at this point in the history
Since ".patch" files are explicitly excluded during tarball packing,
let's just rename the patch file to ".diff" instead so it gets included,
thus allowing the tarball module code to compile once again.
  • Loading branch information
liviuchircu committed Oct 31, 2023
1 parent 139b158 commit 82876a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tls_wolfssl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ lib/lib/libwolfssl.a: lib/wolfssl/Makefile $(PATCHED_FILES)

lib/wolfssl/src/internal.c: lib/patches/wolfssl-internal-memleak-fix.patched

lib/patches/wolfssl-internal-memleak-fix.patched: lib/patches/wolfssl-internal-memleak-fix.patch
lib/patches/wolfssl-internal-memleak-fix.patched: lib/patches/wolfssl-internal-memleak-fix.diff
$(Q)patch -sNR -p1 -d lib/wolfssl --dry-run < $< || patch -N -p1 -d lib/wolfssl < $< && cp $< $@

clean: clean-wolfssl-lib
Expand All @@ -51,7 +51,7 @@ clean-wolfssl-lib:
-@if [ -f ./lib/wolfssl/Makefile ]; then \
$(MAKE) -C ./lib/wolfssl clean; \
fi;
-@patch -stNR -p1 -d lib/wolfssl < lib/patches/wolfssl-internal-memleak-fix.patch
-@patch -stNR -p1 -d lib/wolfssl < lib/patches/wolfssl-internal-memleak-fix.diff
-@rm -rf ./lib/bin ./lib/include ./lib/lib ./lib/share \
./lib/wolfssl/Makefile ./lib/wolfssl/configure \
lib/patches/wolfssl-internal-memleak-fix.patched

0 comments on commit 82876a7

Please sign in to comment.