Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jan 26, 2024
1 parent 55f1994 commit 3e6b1bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ if [[ "${PLATFORM}" == "pi" ]]; then
# kernel build. this is a temporary thing due to the unique issues with USB on the pi zero.
fetch_SBC_source
ls -a
set -x
set -x
echo $(pwd)
##veye v4l2
git clone https://github.com/veyeimaging/raspberrypi_v4l2 workdir/mods/raspberrypi_v4l2 || exit 1
Expand Down
14 changes: 7 additions & 7 deletions scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ function init() {
}

function package() {
echo "Start Packaging"
echo ${PLATFORM}
if [[ "${PI4}" == "true" ]]; then
PACKAGE_NAME=openhd-linux-V7l-${PLATFORM}
else
PACKAGE_NAME=openhd-linux-${PLATFORM}
fi

VERSION="2.5-evo-$(date '+%m%d%H%M')-$(git rev-parse --short HEAD)"

Expand All @@ -28,13 +34,7 @@ function package() {
rm -Rf ${PACKAGE_DIR}/lib/modules/6.1.74-v7+/build
rm -Rf ${PACKAGE_DIR}/lib/modules/6.1.74-v7l+/source
rm -Rf ${PACKAGE_DIR}/lib/modules/6.1.74-v7l+/build
if [[ "${PI4}" == "true" ]]; then
fpm -a ${PACKAGE_ARCH} -s dir -t deb -n ${PACKAGE_NAME}-v7l -v ${VERSION} -C ${PACKAGE_DIR} \
--after-install after-install.sh \
--before-install before-install.sh \
-p ${PACKAGE_NAME}_VERSION_ARCH.deb || exit 1
else
fpm -a ${PACKAGE_ARCH} -s dir -t deb -n ${PACKAGE_NAME}-v7 -v ${VERSION} -C ${PACKAGE_DIR} \
fpm -a ${PACKAGE_ARCH} -s dir -t deb -n ${PACKAGE_NAME} -v ${VERSION} -C ${PACKAGE_DIR} \
--after-install after-install.sh \
--before-install before-install.sh \
-p ${PACKAGE_NAME}_VERSION_ARCH.deb || exit 1
Expand Down

0 comments on commit 3e6b1bb

Please sign in to comment.