Skip to content

Commit

Permalink
[infra/onert] Copy included headers to overlay
Browse files Browse the repository at this point in the history
This commit updates build scripts to copy included headers to overlay for luci link.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh committed Aug 30, 2024
1 parent 7aee01c commit be6b823
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.template
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,12 @@ ifeq (,$(findstring android,$(TARGET_OS)))
@mkdir -p ${OVERLAY_FOLDER}/include/nncc/core/ADT/tensor
@mkdir -p ${OVERLAY_FOLDER}/include/oops
@mkdir -p ${OVERLAY_FOLDER}/include/luci/IR
@mkdir -p ${OVERLAY_FOLDER}/include/mio/circle
@cp compiler/angkor/include/nncc/core/ADT/tensor/Index.h ${OVERLAY_FOLDER}/include/nncc/core/ADT/tensor
@cp compiler/oops/include/oops/InternalExn.h ${OVERLAY_FOLDER}/include/oops
@cp compiler/luci/lang/include/luci/IR/CircleNodes.lst ${OVERLAY_FOLDER}/include/luci/IR
@cp ${NNCC_WORKSPACE}/compiler/mio-circle08/gen/mio/circle/schema_generated.h ${OVERLAY_FOLDER}/include/mio/circle
@cp -r ${NNCC_WORKSPACE}/overlay/include/flatbuffers ${OVERLAY_FOLDER}/include
@echo "Done prepare-nncc"
endif

Expand Down
3 changes: 3 additions & 0 deletions packaging/nnfw.spec
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,12 @@ cmake --install %{nncc_workspace} %{strip_options}
mkdir -p %{overlay_path}/include/nncc/core/ADT/tensor
mkdir -p %{overlay_path}/include/oops
mkdir -p %{overlay_path}/include/luci/IR
mkdir -p %{overlay_path}/include/mio/circle
cp compiler/angkor/include/nncc/core/ADT/tensor/Index.h %{overlay_path}/include/nncc/core/ADT/tensor
cp compiler/oops/include/oops/InternalExn.h %{overlay_path}/include/oops
cp compiler/luci/lang/include/luci/IR/CircleNodes.lst %{overlay_path}/include/luci/IR
cp %{nncc_workspace}/compiler/mio-circle08/gen/mio/circle/schema_generated.h %{overlay_path}/include/mio/circle
cp -r %{nncc_workspace}/overlay/include/flatbuffers %{overlay_path}/include

# runtime build
%{build_env} ./nnfw configure %{build_options}
Expand Down

0 comments on commit be6b823

Please sign in to comment.