Skip to content

Commit

Permalink
Revert "chore(Other): Add zephyr related wrappers and system files in…
Browse files Browse the repository at this point in the history
… MSDK (#990)"

This reverts commit 790ad99.
  • Loading branch information
EricB-ADI committed Aug 21, 2024
1 parent 9ffb9ee commit 29e4c66
Show file tree
Hide file tree
Showing 31 changed files with 14 additions and 3,601 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/scripts/zephyr-hal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ else
hal_adi="./hal_adi"
fi

src="${msdk}/Libraries"
dst="${hal_adi}/MAX/Libraries"

root_dir=$(pwd)

# Get SHA
Expand All @@ -21,35 +24,29 @@ cd ${root_dir}


# Cleanup hal_adi
rm -rf ${hal_adi}/MAX/

# Create parent folder
mkdir -p ${hal_adi}/MAX/Libraries/CMSIS
mkdir -p ${hal_adi}/MAX/Libraries/PeriphDrivers

# Copy zephyr wrappers, system files and cmakefiles
cp -rf ${msdk}/Libraries/zephyr/MAX/* ${hal_adi}/MAX/
rm -rf ${dst}/CMSIS/*
rm -rf ${dst}/PeriphDrivers/*

# Copy CMSIS folder
cp -rf ${msdk}/Libraries/CMSIS/Device ${hal_adi}/MAX/Libraries/CMSIS/
cp -rf ${msdk}/Libraries/CMSIS/Include ${hal_adi}/MAX/Libraries/CMSIS/
cp -rf ${src}/CMSIS/Device ${dst}/CMSIS/
cp -rf ${src}/CMSIS/Include ${dst}/CMSIS/

# Copy PeriphDrivers folder
cp -rf ${msdk}/Libraries/PeriphDrivers/Include ${hal_adi}/MAX/Libraries/PeriphDrivers/
cp -rf ${msdk}/Libraries/PeriphDrivers/Source ${hal_adi}/MAX/Libraries/PeriphDrivers/
cp -rf ${src}/PeriphDrivers/Include ${dst}/PeriphDrivers/
cp -rf ${src}/PeriphDrivers/Source ${dst}/PeriphDrivers/

# Remove unneeded files
rm -rf ${hal_adi}/MAX/Libraries/CMSIS/Device/Maxim/GCC
rm -rf ${hal_adi}/MAX/Libraries/CMSIS/Device/Maxim/MAX*/Source/IAR
rm -rf ${hal_adi}/MAX/Libraries/CMSIS/Device/Maxim/MAX*/Source/GCC
rm -rf ${hal_adi}/MAX/Libraries/CMSIS/Device/Maxim/MAX*/Source/ARM
rm -rf ${dst}/CMSIS/Device/Maxim/GCC
rm -rf ${dst}/CMSIS/Device/Maxim/MAX*/Source/IAR
rm -rf ${dst}/CMSIS/Device/Maxim/MAX*/Source/GCC
rm -rf ${dst}/CMSIS/Device/Maxim/MAX*/Source/ARM

# Check either dirty or clean
cd ${hal_adi}
if [[ -n $(git status -s) ]]; then
echo "New change exist need to be pushed"
# Set new SHA
echo "${msdk_head}" > MAX/msdk_sha
echo "${msdk_head}" > MAX/Libraries/msdk_sha
else
# No need to push to hal_adi
echo "No any change in hal_adi"
Expand Down
62 changes: 0 additions & 62 deletions Libraries/zephyr/MAX/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 29e4c66

Please sign in to comment.