华为SDC相机开发(3.rpm打包模板)

  1. rpm打包需要的文件

    • test二进制文件
    • test.spec
    • test.wk
    • sdc.conf
  2. 打包命令

    rpmbuild -bb --target=aarch64-himix100-linux --define "cross \"aarch64-himix100-linux\"" test.spec
    
  3. 生成的rpm包在 ~/rpmbuild/RPMS/aarch64/ 目录下

  4. web界面下的app管理安装rpm包,sims界面下的app管理可以观看识别效果

  5. 应用会安装在板子的/usr/app/container/3rdApp/目录下

sdc.conf

max_mem_app.sdc=50
max_cpu.app.sdc=50
cpus.app.sdc=0,1
debug.log=y
sys_disk.app.sdc=60000000
data_disk.app.sdc=license 60000000

注意:sys_disk + data_disk 不应该超过150M

test.spec

name:           test
version:        v1.0.0
release:        1
summary:        description in one line
license:        GPL
vendor:         xxx

%define __strip aarch64-himix100-linux-strip
%prep
%build
%install
mkdir -p %{
     buildroot}
mkdir -p %{
     buildroot}/bin
mkdir -p %{
     buildroot}/lib
install -m 755 /home/rpm3559/yolov3/rpm_doc/test %{
     buildroot}/bin/main
install -m 755 /home/rpm3559/yolov3/rpm_doc/yolov3_safetyhat.wk %{
     buildroot}/lib/yolov3_safetyhat.wk
install -m 755 /home/rpm3559/yolov3/rpm_doc/sdc.conf %{
     buildroot}/sdc.conf

%clean
rm -rf %{
     buildroot}
%files
/*
/bin/*
/lib/*

%changelog
%description
description in multi-lines

你可能感兴趣的:(华为SDC相机开发,华为SDC,rpm)