Skip to content
Snippets Groups Projects
Commit bb916cf3 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

pkg/libfixmath: printf format fixes for unittests

parent ebce3491
Branches
No related tags found
No related merge requests found
...@@ -28,8 +28,8 @@ $(BINDIR)$(PKG_NAME)-src/Makefile: $(CHECKOUT_FOLDER)/svn_info.xml ...@@ -28,8 +28,8 @@ $(BINDIR)$(PKG_NAME)-src/Makefile: $(CHECKOUT_FOLDER)/svn_info.xml
$(AD)cp $(CHECKOUT_FOLDER)/libfixmath/*.[ch] $(@D) $(AD)cp $(CHECKOUT_FOLDER)/libfixmath/*.[ch] $(@D)
$(AD)rm -f $(BINDIR)$(PKG_NAME)-src/fix16.h $(AD)rm -f $(BINDIR)$(PKG_NAME)-src/fix16.h
cd $(@D) && sed -i -e 's/1 <</(uint32_t) 1 <</g' uint32.c $(AD)cd $(@D) && sed -i -e 's/1 <</(uint32_t) 1 <</g' uint32.c
cd $(@D) && sed -i -e 's/is\([a-z]*\)(\*buf)/is\1((unsigned char) *buf)/g' fix16_str.c $(AD)cd $(@D) && sed -i -e 's/is\([a-z]*\)(\*buf)/is\1((unsigned char) *buf)/g' fix16_str.c
$(BINDIR)$(PKG_NAME)-unittests-src/Makefile: $(BINDIR)$(PKG_NAME)-unittests-src/Makefile:
@rm -rf $(@D) @rm -rf $(@D)
...@@ -43,6 +43,7 @@ $(BINDIR)$(PKG_NAME)-unittests-src/Makefile: ...@@ -43,6 +43,7 @@ $(BINDIR)$(PKG_NAME)-unittests-src/Makefile:
-e 's/fprintf(std[^,]*,/printf(/' \ -e 's/fprintf(std[^,]*,/printf(/' \
-i $${C_FILE}; \ -i $${C_FILE}; \
done done
$(AD)cd $(@D) && patch -p1 --ignore-whitespace < $(CURDIR)/libfixmath-unittests-printf-format.patch
$(BINDIR)$(PKG_NAME)-headers/fix16.h: $(CHECKOUT_FOLDER)/svn_info.xml $(BINDIR)$(PKG_NAME)-headers/fix16.h: $(CHECKOUT_FOLDER)/svn_info.xml
@rm -rf $(@D) @rm -rf $(@D)
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment