patch-alarm: remove dl_hook

Replace dl_hook with "src_path" and "src_files"

Test Plan:

Pass: successfully build patch-alarm
Pass: No difference comparing with the result of dl_hook

Story: 2009101
Task: 43897

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Change-Id: I7f7a59271d5f290b6f6a8778984bc5d3176536cd
This commit is contained in:
Yue Tao 2022-01-14 17:18:01 +08:00 committed by Yue Tao
parent 451378f1ad
commit 1fabc3b456
2 changed files with 3 additions and 14 deletions

View File

@ -1,13 +0,0 @@
#!/bin/bash
set -x
PKG_BUILD_NAME=$1
PKG_BUILD_ROOT=$(realpath `pwd`/${PKG_BUILD_NAME})
STX_BASE=$(realpath ${MY_REPO}/stx)
SRC=$(realpath ${STX_BASE}/update/patch-alarm)
mkdir ${PKG_BUILD_NAME}
# Copy source files from multiple locations to build root.
cp -pr ${SRC}/patch-alarm/* ${PKG_BUILD_ROOT}
cp -pr ${SRC}/scripts ${PKG_BUILD_ROOT}

View File

@ -1,7 +1,9 @@
---
debname: python3-patch-alarm
debver: 1.0-1
dl_hook: dl_hook
src_path: patch-alarm
src_files:
- scripts
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true