Skip to content

Commit 4da1fa1

Browse files
Link backend to prtable libs (#12268)
### Summary 1. Link portable OPs and kernels 2. Remove unused cmake checks
1 parent c09a00d commit 4da1fa1

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

backends/mediatek/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ target_compile_options(neuron_backend PRIVATE "-frtti" "-fexceptions")
2727
target_link_libraries(neuron_backend
2828
PRIVATE
2929
executorch_core
30+
portable_ops_lib
31+
portable_kernels
3032
android
3133
log
3234
)

backends/mediatek/scripts/mtk_build.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ set -e
66
# Define the directory where CMakeLists.txt is located
77
SOURCE_DIR=$(realpath "$(dirname "$0")/../../..")
88

9-
# Check if buck2 exists
10-
BUCK_PATH=${BUCK2:-buck2}
11-
if [ -z "$BUCK2" ]; then
12-
echo "Info: BUCK2 environment variable is not set." >&2
13-
fi
14-
159
# Check if the ANDROID_NDK environment variable is set
1610
if [ -z "$ANDROID_NDK" ]; then
1711
echo "Error: ANDROID_NDK environment variable is not set." >&2

examples/mediatek/mtk_build_examples.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ set -e
77
EXECUTORCH_ROOT=$(realpath "$(dirname "$0")/../..")
88
echo EXECUTORCH_ROOT=${EXECUTORCH_ROOT}
99

10-
# Check if buck2 exists
11-
BUCK_PATH=${BUCK2:-buck2}
12-
if [ -z "$BUCK2" ]; then
13-
echo "Info: BUCK2 environment variable is not set." >&2
14-
fi
15-
1610
# Check if the ANDROID_NDK environment variable is set
1711
if [ -z "$ANDROID_NDK" ]; then
1812
echo "Error: ANDROID_NDK environment variable is not set." >&2
@@ -30,7 +24,6 @@ main() {
3024
# Configure the project with CMake
3125
# Note: Add any additional configuration options you need here
3226
cmake -DCMAKE_INSTALL_PREFIX="${build_dir}" \
33-
-DBUCK2="$BUCK_PATH" \
3427
-DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK/build/cmake/android.toolchain.cmake" \
3528
-DANDROID_ABI=arm64-v8a \
3629
-DANDROID_NATIVE_API_LEVEL=26 \

0 commit comments

Comments
 (0)