Skip to content

Commit 6ad52e5

Browse files
authored
Merge pull request #69 from soburi/jenprog
Add jenprog tool for Linux support
2 parents ab6e045 + 4cc7649 commit 6ad52e5

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

boards.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jn516x.build.compiler.path.windows=C:/NXP/bstudio_nxp/sdk/Tools/ba-elf-ba2-r3637
1515
jn516x.build.uploader.path=""
1616
jn516x.build.options.target_makefile=target_makefile={runtime.platform.path}/variants/{build.variant}/Makefile.variant
1717
jn516x.build.options.target_makefile.windows=target_makefile='{runtime.platform.path}/variants/{build.variant}/Makefile.variant'
18-
jn516x.build.make.vars={build.options.target_makefile} CONTIKI_TARGET_MAIN=override-contiki-jn516x-main.c TARGET_WITH_UART1=1 PLATFORM_CONF_H='{runtime.platform.path}/variants/{build.variant}/{build.variant}-platform-conf.h' PREINCLUDE_FILES='{build.core.path}/weak_pragmas.h' {build.trace} {build.rpl}
18+
jn516x.build.options.flashprogrammer=FLASH_PROGRAMMER={runtime.tools.jenprog.path}/JennicModuleProgrammer
19+
jn516x.build.options.flashprogrammer.windows=
20+
jn516x.build.make.vars={build.options.target_makefile} CONTIKI_TARGET_MAIN=override-contiki-jn516x-main.c TARGET_WITH_UART1=1 PLATFORM_CONF_H='{runtime.platform.path}/variants/{build.variant}/{build.variant}-platform-conf.h' PREINCLUDE_FILES='{build.core.path}/weak_pragmas.h' {build.trace} {build.rpl} {build.options.flashprogrammer}
1921
jn516x.build.make.goals={build.project_name}.bin {build.project_name}.hex {build.project_name}.elf
2022
jn516x.menu.config.jn5169=JN5169
2123
jn516x.menu.config.jn5169.build.config_vars=CHIP=JN5169 LINKCMD='{runtime.platform.path}/variants/{build.variant}/ldscript/Arduinize_JN5169.ld'
@@ -51,8 +53,8 @@ twelite.build.options.target_makefile=target_makefile={runtime.platform.path}/va
5153
twelite.build.options.target_makefile.windows=target_makefile='{runtime.platform.path}/variants/{build.variant}/Makefile.variant'
5254
twelite.build.options.sdkbase=SDK_BASE_DIR=/opt/MWSDK/ChipLib/SW4063V1416
5355
twelite.build.options.sdkbase.windows=SDK_BASE_DIR=C:/MWSDK/ChipLib/SW4063V1416
54-
twelite.build.options.flashprogrammer=
55-
twelite.build.options.flashprogrammer.windows=FLASH_PROGRAMMER=C:/MWSDK/Tools/ProductionFlashProgrammer/JN51xxProgrammer.exe
56+
twelite.build.options.flashprogrammer=FLASH_PROGRAMMER={runtime.tools.jenprog.path}/JennicModuleProgrammer
57+
twelite.build.options.flashprogrammer.windows=FLASH_PROGRMMER=C:/MWSDK/Tools/ProductionFlashProgrammer/JN51xxProgrammer.exe
5658
twelite.build.make.vars={build.options.target_makefile} CONTIKI_TARGET_MAIN=override-contiki-jn516x-main.c TARGET_WITH_UART1=1 PLATFORM_CONF_H='{runtime.platform.path}/variants/{build.variant}/{build.variant}-platform-conf.h' PREINCLUDE_FILES='{build.core.path}/weak_pragmas.h' {build.trace} {build.rpl} {build.options.sdkbase} {build.options.flashprogrammer}
5759
twelite.build.make.goals={build.project_name}.bin {build.project_name}.hex {build.project_name}.elf
5860
twelite.menu.config.TWELITE_BLUE=TWELITE BLUE

dist/platform_template.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
"packager": "intiki",
3434
"name": "BA2-toolchain",
3535
"version": "4.7.4-r36379"
36+
},
37+
{
38+
"packager": "intiki",
39+
"name": "jenprog",
40+
"version": "0.0.20180603"
3641
}
3742
]
3843
}

dist/tool_template.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,18 @@
3737
"size": "XXXXXXXXXXXXXXXX"
3838
}
3939
]
40+
},
41+
{
42+
"name": "jenprog",
43+
"version": "XXXXX",
44+
"systems": [
45+
{
46+
"url": "https://github.com/soburi/${NAME}/releases/download/${VERSION}/${NAME}_${ARCH}_${VERSION}.tar.bz2",
47+
"host": "XXXXXXXXXXXXXXXX",
48+
"archiveFileName": "XXXXX",
49+
"checksum": "XXXXXXXXXXXX",
50+
"size": "XXXXXXXXXXXXXXXX"
51+
}
52+
]
4053
}
4154
]

0 commit comments

Comments
 (0)