update cmsis-pack address (#160)

This commit is contained in:
Gabriel Wang 2022-06-24 13:29:44 +01:00 committed by GitHub
parent 7a4fa9aa3d
commit b11ee16354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 421 deletions

View File

@ -1,198 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package schemaVersion="1.4" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="PACK.xsd">
<vendor>PikaTech</vendor>
<name>perf_counter</name>
<description>PikaScript is an ultra-lightweight Python engine with zero dependencies and zero-configuration, that can run with 4KB of RAM and 32KB of flash. It's very easy to bind C function to python module with the help of Pika Pre-compiler.Only write the API of python in .pyi and the bindings are autoly generated by Pre-compiler.</description>
<url>https://raw.githubusercontent.com/pikaTech/pikaScript/master/cmsis-pack/</url>
<supportContact>https://github.com/pikasTech/pikascript/issues</supportContact>
<license>LICENSE</license>
<!-- optional license file -->
<!--
<license>
</license>
-->
<repository type="git">https://github.com/pikasTech/pikascript.git</repository>
<releases>
<release date="2022-06-23" version="0.9.0-alpha1" url="https://raw.githubusercontent.com/pikaTech/pikaScript/master/cmsis-pack/PikaTech.PikaScript.0.9.0-alpha1.pack">
- First cmsis-pack
</release>
</releases>
<keywords>
<!-- keywords for indexing -->
<keyword>Python</keyword>
<keyword>MCU</keyword>
</keywords>
<conditions>
<condition id="Arm Compiler">
<description>Arm Compiler 5 (armcc) or Arm Compiler 6 (armclang).</description>
<accept Tcompiler="ARMCC" Toptions="AC6"/>
<accept Tcompiler="ARMCC" Toptions="AC6LTO"/>
<accept Tcompiler="ARMCC" Toptions="AC5"/>
</condition>
<condition id="Arm GCC">
<description>GNU Tools for Arm Embedded Processors.</description>
<accept Tcompiler="GCC"/>
</condition>
<condition id="Cortex-M Processors">
<description>Support All Cortex-M based processors</description>
<accept Dcore="Cortex-M0"/>
<accept Dcore="Cortex-M0+"/>
<accept Dcore="Cortex-M1"/>
<accept Dcore="Cortex-M3"/>
<accept Dcore="Cortex-M4"/>
<accept Dcore="Cortex-M7"/>
<accept Dcore="Cortex-M23"/>
<accept Dcore="Cortex-M33"/>
<accept Dcore="Cortex-M35P"/>
<accept Dcore="Cortex-M55"/>
<accept Dcore="Cortex-M85"/>
<accept Dcore="Star-MC1"/>
<accept Dcore="SC000"/>
<accept Dcore="SC300"/>
<accept Dcore="ARMV8MBL"/>
<accept Dcore="ARMV8MML"/>
<accept Dcore="ARMV81MML"/>
</condition>
<condition id="CMSIS-CORE">
<description>Require CMSIS-CORE Support</description>
<require Cclass="CMSIS" Cgroup="CORE"/>
</condition>
<condition id="Cortex-M Arm GCC">
<description>Compile Cortex-M Processors with GNU Tools for Arm Embedded Processors.</description>
<require condition="Arm GCC"/>
<require condition="Cortex-M Processors"/>
</condition>
<condition id="Cortex-M Arm Compiler">
<description>Compile Cortex-M Processors with GNU Tools for Arm Embedded Processors.</description>
<require condition="Arm Compiler"/>
<require condition="Cortex-M Processors"/>
</condition>
<condition id="Cortex-M Arm GCC CMSIS-CORE">
<description>Compile Cortex-M Processors with GNU Tools for Arm Embedded Processors.</description>
<require condition="Arm GCC"/>
<require condition="Cortex-M Processors"/>
<require condition="CMSIS-CORE"/>
</condition>
<condition id="Cortex-M Arm Compiler CMSIS-CORE">
<description>Compile Cortex-M Processors with GNU Tools for Arm Embedded Processors.</description>
<require condition="Arm Compiler"/>
<require condition="Cortex-M Processors"/>
<require condition="CMSIS-CORE"/>
</condition>
<condition id="Kernel">
<description>The Kernel of the PikaScript</description>
<require Cclass="Script" Cgroup="PikaScript" Csub="Core" Cversion="1.8.6"/>
</condition>
</conditions>
<!-- apis section (optional - for Application Programming Interface descriptions) -->
<!--
<apis>
</apis>
-->
<!-- boards section (mandatory for Board Support Packs) -->
<!--
<boards>
</boards>
-->
<!-- devices section (mandatory for Device Family Packs) -->
<!--
<devices>
</devices>
-->
<!-- examples section (optional for all Software Packs)-->
<!--
<examples>
</examples>
-->
<!-- conditions section (optional for all Software Packs)-->
<!--
<conditions>
</conditions>
-->
<components>
<bundle Cbundle="PikaScript" Cclass="Script">
<description>an ultra-lightweight Python engine</description>
<doc>https://pikadoc.readthedocs.io/en/latest/index.html</doc>
<component Cgroup="PikaScript" Csub="Core" Cversion="1.8.6">
<description>PikaScript Kernel</description>
<files>
<file attr="config" category="header" name="src/BaseObj.h" />
<file attr="config" category="sourceC" name="src/BaseObj.c" />
<file attr="config" category="header" name="src/dataArg.h" />
<file attr="config" category="sourceC" name="src/dataArg.c" />
<file attr="config" category="header" name="src/dataArgs.h" />
<file attr="config" category="sourceC" name="src/dataArgs.c" />
<file attr="config" category="header" name="src/dataLink.h" />
<file attr="config" category="sourceC" name="src/dataLink.c" />
<file attr="config" category="header" name="src/dataLinkNode.h" />
<file attr="config" category="sourceC" name="src/dataLinkNode.c" />
<file attr="config" category="header" name="src/dataMemory.h" />
<file attr="config" category="sourceC" name="src/dataMemory.c" />
<file attr="config" category="header" name="src/dataQueue.h" />
<file attr="config" category="sourceC" name="src/dataQueue.c" />
<file attr="config" category="header" name="src/dataQueueObj.h" />
<file attr="config" category="sourceC" name="src/dataQueueObj.c" />
<file attr="config" category="header" name="src/dataStack.h" />
<file attr="config" category="sourceC" name="src/dataStack.c" />
<file attr="config" category="header" name="src/dataString.h" />
<file attr="config" category="sourceC" name="src/dataString.c" />
<file attr="config" category="header" name="src/dataStrs.h" />
<file attr="config" category="sourceC" name="src/dataStrs.c" />
<file attr="config" category="header" name="src/PikaCompiler.h" />
<file attr="config" category="sourceC" name="src/PikaCompiler.c" />
<file attr="config" category="header" name="src/PikaObj.h" />
<file attr="config" category="sourceC" name="src/PikaObj.c" />
<file attr="config" category="header" name="src/PikaParser.h" />
<file attr="config" category="sourceC" name="src/PikaParser.c" />
<file attr="config" category="header" name="src/PikaPlatform.h" />
<file attr="config" category="sourceC" name="src/PikaPlatform.c" />
<file attr="config" category="header" name="src/PikaVM.h" />
<file attr="config" category="sourceC" name="src/PikaVM.c" />
<file attr="config" category="header" name="src/TinyObj.h" />
<file attr="config" category="sourceC" name="src/TinyObj.c" />
<!-- Misc -->
<file attr="config" category="header" name="src/__instruction_def.h" />
<file attr="config" category="source" name="src/__instruction_table.cfg" />
<file attr="config" category="header" name="src/__instruction_def.h" />
</files>
<RTE_Components_h>
#define RTE_Script_PikaScript
</RTE_Components_h>
</component>
<component Cgroup="PikaScript" Csub="PikaStdLib" Cversion="1.8.6" condition="Kernel">
<description>The standard library for PikaScript</description>
<files>
<file category="source" name="lib/perf_os_patch_rtx5.c"/>
</files>
</component>
</bundle>
</components>
<!-- optional taxonomy section for defining new component Class and Group names -->
<!--
<taxonomy>
</taxonomy>
-->
</package>

View File

@ -1,221 +0,0 @@
#!/bin/bash
# Version: 1.1
# Date: 2020-04-29
# This bash script generates a CMSIS Software Pack:
#
# Pre-requisites:
# - bash shell (for Windows: install git for Windows)
# - 7z in path (zip archiving utility)
# e.g. Ubuntu: sudo apt-get install p7zip-full p7zip-rar)
# - PackChk in path with execute permission
# (see CMSIS-Pack: CMSIS/Utilities/<os>/PackChk)
# - xmllint in path (XML schema validation)
# e.g. Ubuntu: sudo apt-get install libxml2-utils
# Windows: download from https://www.zlatkovic.com/pub/libxml/
############### EDIT BELOW ###############
# Extend Path environment variable locally
#
if [ `uname -s` = "Linux" ]
then
CMSIS_PACK_PATH="/home/$USER/.arm/Packs/ARM/CMSIS/5.9.0/"
PATH_TO_ADD="$CMSIS_PACK_PATH/CMSIS/Utilities/Linux64/"
else
CMSIS_PACK_PATH="/C/Users/gabriel/AppData/Local/Arm/Packs/ARM/CMSIS/5.9.0"
PATH_TO_ADD="/C/Program Files (x86)/7-Zip/:$CMSIS_PACK_PATH/CMSIS/Utilities/Win32/:/C/xmllint/"
fi
[[ ":$PATH:" != *":$PATH_TO_ADD}:"* ]] && PATH="${PATH}:${PATH_TO_ADD}"
echo $PATH_TO_ADD appended to PATH
echo " "
# Pack warehouse directory - destination
PACK_WAREHOUSE=cmsis-pack/
# Temporary pack build directory
PACK_BUILD=build/
# Specify directories included in pack relative to base directory
# All directories:
# PACK_DIRS=`ls -d */`
# Do not include the build directory if it is local
# PACK_DIRS=${PACK_DIRS//$PACK_BUILD/}
# PACK_DIRS=${PACK_DIRS//$PACK_WAREHOUSE/}
# alternative: specify directory names to be added to pack base directory
PACK_DIRS="
lib
os
documents
"
# Specify file names to be added to pack base directory
PACK_BASE_FILES="
perf_counter.c
perf_counter.h
systick_wrapper_gcc.s
systick_wrapper_ual.s
LICENSE
README.md
"
############ DO NOT EDIT BELOW ###########
echo Starting CMSIS-Pack Generation: `date`
# Zip utility check
ZIP=7z
type -a $ZIP
errorlevel=$?
if [ $errorlevel -gt 0 ]
then
echo "Error: No 7zip Utility found"
echo "Action: Add 7zip to your path"
echo " "
exit
fi
# Pack checking utility check
PACKCHK=PackChk
type -a $PACKCHK
errorlevel=$?
if [ $errorlevel != 0 ]
then
echo "Error: No PackChk Utility found"
echo "Action: Add PackChk to your path"
echo "Hint: Included in CMSIS Pack:"
echo "<pack_root_dir>/ARM/CMSIS/<version>/CMSIS/Utilities/<os>/"
echo " "
exit
fi
echo " "
# XML syntax checking utility check
XMLLINT=xmllint
type -a $XMLLINT
errorlevel=$?
if [ $errorlevel != 0 ]
then
echo "Error: No xmllint found"
echo "Action: Add xmllint to your path"
echo " "
exit
fi
echo " "
# Locate Package Description file
# check whether there is more than one pdsc file
NUM_PDSCS=`ls -1 *.pdsc | wc -l`
PACK_DESCRIPTION_FILE=`ls *.pdsc`
if [ $NUM_PDSCS -lt 1 ]
then
echo "Error: No *.pdsc file found in current directory"
echo " "
elif [ $NUM_PDSCS -gt 1 ]
then
echo "Error: Only one PDSC file allowed in directory structure:"
echo "Found:"
echo "$PACK_DESCRIPTION_FILE"
echo "Action: Delete unused pdsc files"
echo " "
exit
fi
SAVEIFS=$IFS
IFS=.
set $PACK_DESCRIPTION_FILE
# Pack Vendor
PACK_VENDOR=$1
# Pack Name
PACK_NAME=$2
echo Generating Pack Version: for $PACK_VENDOR.$PACK_NAME
echo " "
IFS=$SAVEIFS
#if $PACK_BUILD directory does not exist, create it.
if [ ! -d $PACK_BUILD ]; then
mkdir -p $PACK_BUILD
fi
# Copy files into build base directory: $PACK_BUILD
# pdsc file is mandatory in base directory:
cp -f ./$PACK_VENDOR.$PACK_NAME.pdsc ${PACK_BUILD}
cp -f ./os/perf_os_patch_rtx5.c ./lib
cp -f ./os/perf_os_patch_freertos.c ./lib
cp -f ./os/perf_os_patch_rt_thread.c ./lib
cp -f ./os/perf_os_patch_threadx.c ./lib
cp -f ./perf_counter.h ./lib
# directories
echo Adding directories to pack:
echo $PACK_DIRS
echo " "
for d in ${PACK_DIRS}
do
cp -r "$d" ${PACK_BUILD}
done
# files for base directory
echo Adding files to pack:
echo $PACK_BASE_FILES
echo " "
for f in $PACK_BASE_FILES
do
cp -f "$f" $PACK_BUILD/
done
# Run Schema Check (for Linux only):
# sudo apt-get install libxml2-utils
echo Running schema check for $PACK_VENDOR.$PACK_NAME.pdsc
$XMLLINT --noout --schema ${CMSIS_PACK_PATH}/CMSIS/Utilities/PACK.xsd $PACK_BUILD/$PACK_VENDOR.$PACK_NAME.pdsc
errorlevel=$?
if [ $errorlevel -ne 0 ]; then
echo "build aborted: Schema check of $PACK_VENDOR.$PACK_NAME.pdsc against PACK.xsd failed"
echo " "
exit
fi
# Run Pack Check and generate PackName file with version
$PACKCHK $PACK_BUILD/$PACK_VENDOR.$PACK_NAME.pdsc -n PackName.txt -x M362
errorlevel=$?
if [ $errorlevel -ne 0 ]; then
echo "build aborted: pack check failed"
echo " "
exit
fi
PACKNAME=`cat PackName.txt`
rm -rf PackName.txt
# Archiving
# $ZIP a $PACKNAME
echo creating pack file $PACKNAME
#if $PACK_WAREHOUSE directory does not exist create it
if [ ! -d $PACK_WAREHOUSE ]; then
mkdir -p $PACK_WAREHOUSE
fi
pushd $PACK_WAREHOUSE
PACK_WAREHOUSE=`pwd`
popd
pushd $PACK_BUILD
"$ZIP" a $PACK_WAREHOUSE/$PACKNAME -tzip
popd
errorlevel=$?
if [ $errorlevel -ne 0 ]; then
echo "build aborted: archiving failed"
exit
fi
cp -f ./$PACK_VENDOR.$PACK_NAME.pdsc ${PACK_WAREHOUSE}
echo "build of pack succeeded"
# Clean up
echo "cleaning up ..."
rm -rf $PACK_BUILD
echo " "
echo Completed CMSIS-Pack Generation: `date`

View File

@ -16,7 +16,7 @@
<repository type="git">https://github.com/pikasTech/pikascript.git</repository>
<releases>
<release date="2022-06-24" version="0.9.2" url="https://raw.githubusercontent.com/pikaTech/pikaScript/master/port/cmsis-pack/PikaTech.PikaScript.0.9.2.pack">
<release date="2022-06-24" version="0.9.2" url="https://gitee.com/Lyon1998/pikascript/attach_files/1106948/download">
- PikaScript v1.8.7
</release>

View File

@ -16,7 +16,7 @@
<repository type="git">https://github.com/pikasTech/pikascript.git</repository>
<releases>
<release date="2022-06-24" version="0.9.2" url="https://raw.githubusercontent.com/pikaTech/pikaScript/master/port/cmsis-pack/PikaTech.PikaScript.0.9.2.pack">
<release date="2022-06-24" version="0.9.2" url="https://gitee.com/Lyon1998/pikascript/attach_files/1106948/download">
- PikaScript v1.8.7
</release>