Skip to content

Commit

Permalink
edgeai-apps-utils: add support to build edgeai-apps-utils package
Browse files Browse the repository at this point in the history
Signed-off-by: Suhaas Joshi <[email protected]>
  • Loading branch information
jsuhaas22 committed Feb 14, 2024
1 parent 7cee787 commit 2abc4e6
Show file tree
Hide file tree
Showing 14 changed files with 302 additions and 0 deletions.
6 changes: 6 additions & 0 deletions edgeai-apps-utils/suite/bookworm/debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This package installs to two locations:

1. the .so file is installed in /usr/lib/
2. the includes are installed in /usr/include/edgeai-apps-utils/

Further, the entire source code is cloned in /opt/.
5 changes: 5 additions & 0 deletions edgeai-apps-utils/suite/bookworm/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
edgeai-apps-utils (0.1+git20240205+8e84be376-1) UNRELEASED; urgency=low

* Initial release.

-- Suhaas Joshi <[email protected]> Wed, 14 Feb 2024 05:49:56 +0000
26 changes: 26 additions & 0 deletions edgeai-apps-utils/suite/bookworm/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Source: edgeai-apps-utils
Section: libs
Priority: optional
Maintainer: Suhaas Joshi <[email protected]>
Build-Depends: cmake, debhelper-compat (= 13)
Standards-Version: 4.5.1
Homepage: https://git.ti.com/cgit/edgeai/edgeai-apps-utils
Rules-Requires-Root: no

Package: libedgeai-apps-utils0.1.0
Section: libs
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: EdgeAI Apps Utils
EdgeAI Apps Utils implements ARMv8 neon optimized utility functions
and also NV12 post process utility functions.

Package: libedgeai-apps-utils-dev
Section: libdevel
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends} libedgeai-apps-utils0.1.0
Description: EdgeAI Apps Utils
EdgeAI Apps Utils implements ARMv8 neon optimized utility functions
and also NV12 post process utility functions.
.
This package contains development files for libedgeai-apps-utils.
222 changes: 222 additions & 0 deletions edgeai-apps-utils/suite/bookworm/debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: edgeai-apps-utils
Upstream-Contact: Texas Instruments
Source: https://git.ti.com/cgit/edgeai/edgeai-apps-utils

Files: include/edgeai_dl_color_convert_armv8_utils.h
include/edgeai_dl_pre_proc_armv8_utils.h
include/edgeai_dl_scaler_armv8_utils.h
include/edgeai_image_params.h
include/edgeai_perf_stats_utils.h
src/edgeai_dl_color_convert_armv8_utils.c
src/edgeai_dl_pre_proc_armv8_utils.c
src/edgeai_dl_scaler_armv8_utils.c
src/edgeai_perf_stats_utils.c
Copyright: 2023 Texas Instruments Incorporated
License: __UNKNOWN__
not granted herein.
.
Limited License.
.
Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
license under copyrights and patents it now or hereafter owns or controls to make,
have made, use, import, offer to sell and sell ("Utilize") this software subject to the
terms herein. With respect to the foregoing patent license, such license is granted
solely to the extent that any such patent is necessary to Utilize the software alone.
The patent license shall not apply to any combinations which include this software,
other than combinations with devices manufactured by or for TI ("TI Devices").
No hardware patent is licensed hereunder.
.
Redistributions must preserve existing copyright notices and reproduce this license
(including the above copyright notice and the disclaimer and (if applicable) source
code license limitations below) in the documentation and/or other materials provided
with the distribution
.
Redistribution and use in binary form, without modification, are permitted provided
that the following conditions are met:
.
* No reverse engineering, decompilation, or disassembly of this software is
permitted with respect to any software provided in binary form.
.
* any redistribution and use are licensed by TI for use only with TI Devices.
.
* Nothing shall obligate TI to provide you with source code for the software
licensed and provided to you in object code.
.
If software source code is provided to you, modification and redistribution of the
source code are permitted provided that the following conditions are met:
.
* any redistribution and use of the source code, including any resulting derivative
works, are licensed by TI for use only with TI Devices.
.
* any redistribution and use of any object code compiled from the source code
and any resulting derivative works, are licensed by TI for use only with TI Devices.
.
Neither the name of Texas Instruments Incorporated nor the names of its suppliers
.
may be used to endorse or promote products derived from this software without
specific prior written permission.
.
DISCLAIMER.
.
THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.

Files: .gitignore
CMakeLists.txt
README.md
cmake/common.cmake
cmake/cross_compile_aarch64.cmake
cmake/setup_cross_compile.sh
utility-scripts/font-bitmap-generator/README.md
utility-scripts/font-bitmap-generator/fonts/ANDALEMO.TTF
Copyright: __NO_COPYRIGHT_NOR_LICENSE__
License: __NO_COPYRIGHT_NOR_LICENSE__

Files: src/edgeai_arm_neon_utils.c
src/edgeai_nv12_drawing_utils.c
src/edgeai_nv12_font_utils.c
Copyright: 2022 Texas Instruments Incorporated - http://www.ti.com/
License: __UNKNOWN__
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
.
Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the
distribution.
.
Neither the name of Texas Instruments Incorporated nor the names of
its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.
Module headers.

Files: include/edgeai_arm_neon_utils.h
include/edgeai_nv12_drawing_utils.h
utility-scripts/font-bitmap-generator/font_bitmap_generator.py
Copyright: 2022 Texas Instruments Incorporated - http://www.ti.com/
License: __UNKNOWN__
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
.
Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the
distribution.
.
Neither the name of Texas Instruments Incorporated nor the names of
its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Files: include/edgeai_nv12_font_utils.h
Copyright: 2022 Texas Instruments Incorporated - http://www.ti.com/
License: __UNKNOWN__
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
.
Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the
distribution.
.
Neither the name of Texas Instruments Incorporated nor the names of
its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.
Standard headers.

#----------------------------------------------------------------------------
# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following
# license/copyright files.

#----------------------------------------------------------------------------
# License file: LICENSE
TEXAS INSTRUMENTS TEXT FILE LICENSE
.
.
Copyright (c) 2020 – 2022 Texas Instruments Incorporated
.
All rights reserved not granted herein.
.
Limited License.
.
Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive license under copyrights and patents it now or hereafter owns or controls to make, have made, use, import, offer to sell and sell ("Utilize") this software subject to the terms herein. With respect to the foregoing patent license, such license is granted solely to the extent that any such patent is necessary to Utilize the software alone. The patent license shall not apply to any combinations which include this software, other than combinations with devices manufactured by or for TI (“TI Devices”). No hardware patent is licensed hereunder.
.
Redistributions must preserve existing copyright notices and reproduce this license (including the above copyright notice and the disclaimer and (if applicable) source code license limitations below) in the documentation and/or other materials provided with the distribution
.
Redistribution and use in binary form, without modification, are permitted provided that the following conditions are met:
.
* No reverse engineering, decompilation, or disassembly of this software is permitted with respect to any software provided in binary form.
.
* any redistribution and use are licensed by TI for use only with TI Devices.
.
* Nothing shall obligate TI to provide you with source code for the software licensed and provided to you in object code.
.
If software source code is provided to you, modification and redistribution of the source code are permitted provided that the following conditions are met:
.
* any redistribution and use of the source code, including any resulting derivative works, are licensed by TI for use only with TI Devices.
.
* any redistribution and use of any object code compiled from the source code and any resulting derivative works, are licensed by TI for use only with TI Devices.
.
Neither the name of Texas Instruments Incorporated nor the names of its suppliers may be used to endorse or promote products derived from this software without specific prior written permission.
.
DISCLAIMER.
.
THIS SOFTWARE IS PROVIDED BY TI AND TI’S LICENSORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TI AND TI’S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/include/* /usr/include
usr/lib/*.so /usr/lib
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
initial-upload-closes-no-bugs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -e

mkdir -p /opt

git clone https://git.ti.com/git/edgeai/edgeai-apps-utils /opt/edgeai-apps-utils
git -C /opt/edgeai-apps-utils checkout main
exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -e

rm -rf /opt/edgeai-apps-utils
exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/*.so.* /usr/lib
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
initial-upload-closes-no-bugs
15 changes: 15 additions & 0 deletions edgeai-apps-utils/suite/bookworm/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/make -f

export SOC=am62x

%:
dh $@

override_dh_auto_configure:
mkdir build/ && cd build/ && cmake ..

override_dh_auto_build:
cd build/ && make

override_dh_auto_install:
cd build/ && make install DESTDIR=../debian/tmp
1 change: 1 addition & 0 deletions edgeai-apps-utils/suite/bookworm/debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
1 change: 1 addition & 0 deletions edgeai-apps-utils/suite/bookworm/debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version=3
6 changes: 6 additions & 0 deletions edgeai-apps-utils/version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

export git_repo="https://git.ti.com/git/edgeai/edgeai-apps-utils.git"
export custom_build=false
export require_root=true
export last_tested_commit="8e84be376afb7fdb8aa16d9d048fa068f9837fa2"

0 comments on commit 2abc4e6

Please sign in to comment.