Skip to content

Commit

Permalink
add minimum with ide support fimware
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Nov 29, 2019
1 parent 9136824 commit 4f98016
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 0 deletions.
134 changes: 134 additions & 0 deletions projects/maixpy_k210_minimum/config_with_ide_support.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)

#
# Toolchain configuration
#
CONFIG_TOOLCHAIN_PATH="/opt/kendryte-toolchain/bin"
CONFIG_TOOLCHAIN_PREFIX="riscv64-unknown-elf-"
# end of Toolchain configuration

#
# Components configuration
#

#
# Board config
#
CONFIG_BOARD_MAIX=y
# CONFIG_BOARD_M5STICK is not set
CONFIG_LCD_DEFAULT_WIDTH=320
CONFIG_LCD_DEFAULT_HEIGHT=240
CONFIG_LCD_DEFAULT_FREQ=15000000
CONFIG_SENSOR_FREQ=24000000
# end of Board config

CONFIG_COMPONENT_DRIVERS_ENABLE=y

#
# Drivers configuration
#

#
# SD card
#
CONFIG_SPI_SD_CARD_FORCE_HIGH_SPEED=y
# end of SD card

#
# WS2812
#
# CONFIG_WS2812_ENABLE is not set
# end of WS2812

#
# HTPA thermal sensor
#
# CONFIG_HTPA_ENABLE is not set
# end of HTPA thermal sensor
# end of Drivers configuration

CONFIG_COMPONENT_KENDRYTE_SDK_ENABLE=y

#
# Kendryte SDK configurations
#
CONFIG_SDK_LOG_LEVEL=5
# CONFIG_FREERTOS_ENABLE is not set
# CONFIG_MIC_ARRAY_ENABLE is not set
# end of Kendryte SDK configurations

CONFIG_COMPONENT_MICROPYTHON_ENABLE=y

#
# Micropython configurations
#
CONFIG_MAIXPY_GC_HEAP_SIZE=0x80000

#
# Modules configurations
#
CONFIG_MAIXPY_IDE_SUPPORT=y
# CONFIG_MAIXPY_THREAD_ENABLE is not set
# CONFIG_MAIXPY_NES_ENABLE is not set
# CONFIG_MAIXPY_VIDEO_ENABLE is not set
# CONFIG_MAIXPY_TOUCH_SCREEN_ENABLE is not set
CONFIG_MAIXPY_OMV_MINIMUM=y
# CONFIG_MAIXPY_OMV_CONV_YUV_FAST is not set
# CONFIG_MAIXPY_MIC_ARRAY_ENABLE is not set
# CONFIG_MAIXPY_LVGL_ENABLE is not set
# CONFIG_MAIXPY_WS2812_ENABLE is not set
# CONFIG_MAIXPY_HTPA_ENABLE is not set
# end of Modules configurations

#
# Debug configurations
#
# CONFIG_MAIXPY_K210_UARTHS_DEBUG is not set
# end of Debug configurations

CONFIG_BUILTIN_PY_DIR=""
# end of Micropython configurations

#
# Others
#
# CONFIG_COMPONENT_LIB_SIPEED_KPU_SRC_ENABLE is not set
# end of Others

CONFIG_COMPONENT_SPIFFS_ENABLE=y

#
# SPIFFS Configuration
#

#
# SPIFFS Cache Configuration
#
CONFIG_SPIFFS_CACHE=y
CONFIG_SPIFFS_CACHE_WR=y
# CONFIG_SPIFFS_CACHE_STATS is not set
# end of SPIFFS Cache Configuration

CONFIG_SPIFFS_SIZE=0x300000
CONFIG_SPIFFS_START_ADDR=0xD00000
CONFIG_SPIFFS_EREASE_SIZE=0x1000
CONFIG_SPIFFS_LOGICAL_BLOCK_SIZE=0x20000
CONFIG_SPIFFS_LOGICAL_PAGE_SIZE=0x1000
CONFIG_SPIFFS_OBJ_NAME_LEN=128
CONFIG_SPIFFS_USE_MAGIC=y
CONFIG_SPIFFS_USE_MAGIC_LENGTH=y
CONFIG_SPIFFS_META_LENGTH=0

#
# Debug Configuration
#
# CONFIG_SPIFFS_DBG is not set
# CONFIG_SPIFFS_API_DBG is not set
# CONFIG_SPIFFS_GC_DBG is not set
# CONFIG_SPIFFS_CACHE_DBG is not set
# CONFIG_SPIFFS_CHECK_DBG is not set
# end of Debug Configuration
# end of SPIFFS Configuration

CONFIG_COMPONENT_UTILS_ENABLE=y
# end of Components configuration
11 changes: 11 additions & 0 deletions tools/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ cp build/maixpy.bin $release_dir/maixpy_${version}_minimum.bin
cp build/maixpy.elf $release_dir/elf/maixpy_${version}_minimum.elf
cd ..

# minimum with IDE support
cd maixpy_k210_minimum
echo "-------------------"
echo "build project maixpy_k210_minimum"
echo "-------------------"
python project.py distclean
python project.py build --config_file "config_with_ide_support.mk"
cp build/maixpy.bin $release_dir/maixpy_${version}_minimum_with_ide_support.bin
cp build/maixpy.elf $release_dir/elf/maixpy_${version}_minimum_with_ide_support.elf
cd ..

#
cd maixpy_m5stickv
echo "-------------------"
Expand Down

0 comments on commit 4f98016

Please sign in to comment.