1#!/bin/sh 2 3# Copyright (c) 2023 HPMicro. 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16rm -rf hpm_sdk 17mkdir hpm_sdk 18unzip hpm_sdk_*.zip -d hpm_sdk 19 20pushd hpm_sdk 21 22rm -vrf .git docs samples cmake scripts env.cmd env.sh hpm_sdk_version.h.in Jenkinsfile 23 24pushd middleware 25rm -vrf azure_rtos CMSIS coremark erpc fatfs FreeRTOS hpm_math libjpeg-turbo lvgl lwip mbedtls \ 26 microros ptpd rtthread-nano segger_rtt tflm tinycrypt tinyusb ucos_iii vglite 27popd 28 29pushd soc 30shopt -s extglob 31rm -rvf !(ip|CMakeLists.txt|HPM5301|HPM5361|HPM6280|HPM6360|HPM6750|HPM6880) 32popd 33 34rm -vrf soc/*/toolchains/segger 35rm -vrf boards/hpm*validation hpm6754evk2 36rm -vrf boards/openocd/boards/hpm*validation*.cfg 37rm -vrf boards/openocd/boards/hpm6750rd.cfg 38 39 40popd 41 42 43 44 45 46 47