Skip to content

Commit c66c5a2

Browse files
meetgandhi-devMeet Gandhi
authored andcommitted
Remove non-header files from include folder (#716)
The `include` directory previously contained all files copied over, but only `*.h` and `*.hpp` files are required. This commit removes all files that do not have a `.h` or `.hpp` extension, as well as any empty directories that may result from this cleanup. Signed-off-by: Meet Gandhi <[email protected]> Co-authored-by: Meet Gandhi <[email protected]> (cherry picked from commit 096ded0)
1 parent fc7571b commit c66c5a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/generate_lib/generic/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ pushd $FW_TARGETDIR/mcu_ws >/dev/null
4848
done ; \
4949
ar rc libmicroros.a $(ls *.o *.obj 2> /dev/null); mkdir -p $BUILD_DIR; cp libmicroros.a $BUILD_DIR; ranlib $BUILD_DIR/libmicroros.a; \
5050
cp -R $FW_TARGETDIR/mcu_ws/install/include $BUILD_DIR/; \
51+
rm $(find $BUILD_DIR/include -type f -not -name "*.h" -not -name "*.hpp") \
52+
rm -rf $(find $BUILD_DIR/include -type d -empty) \
5153
cd ..; rm -rf libmicroros;
5254

5355
popd >/dev/null

0 commit comments

Comments
 (0)