Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions circle-mlir/infra/debian/onnx2circle/onnx2circle.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# {FILES_TO_INSTALL} {DEST_DIR}
# bin
bin/onnx2circle usr/share/circletools/bin/
2 changes: 2 additions & 0 deletions circle-mlir/infra/debian/onnx2circle/onnx2circle.links
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# bin
usr/share/circletools/bin/onnx2circle usr/bin/onnx2circle
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO we don't need this for current user scenario.
onnx2circle is conversion tool called from one-import-onnx and it would be better not to expose this tool in command line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, then let's remove this link.

37 changes: 37 additions & 0 deletions circle-mlir/infra/debian/onnx2circle/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/make -f

export NNCC_INSTALL_PREFIX=$(CURDIR)
export DEBIAN_PREFIX=$(CURDIR)/debian/tmp

%:
dh $@

override_dh_auto_clean:
# Nothing to clean
true

override_dh_auto_configure:
# No configure step needed
true

override_dh_auto_build:
# No build step needed
true

override_dh_auto_test:
# No test step needed
true

override_dh_auto_install:
# copy the bin file
mkdir -p ${DEBIAN_PREFIX}/bin
cp ${NNCC_INSTALL_PREFIX}/onnx2circle ${DEBIAN_PREFIX}/bin/

override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info

override_dh_strip:
dh_strip --no-automatic-dbgsym

override_dh_builddeb:
dh_builddeb