├── go └── .gitignore ├── cli ├── flash │ ├── esp │ │ ├── .gitattributes │ │ └── stub │ │ │ ├── led.h │ │ │ └── slip.h │ ├── esp32 │ │ └── stub │ │ │ ├── sdkconfig.h │ │ │ ├── genstub.sh │ │ │ └── uart.h │ ├── esp32c3 │ │ └── stub │ │ │ ├── sdkconfig.h │ │ │ ├── genstub.sh │ │ │ ├── platform.h │ │ │ ├── uart.h │ │ │ └── spi_flash_rom_patch.c │ ├── esp32s3 │ │ └── stub │ │ │ ├── sdkconfig.h │ │ │ ├── spi_flash_rom_patch.c │ │ │ ├── genstub.sh │ │ │ ├── platform.h │ │ │ └── uart.h │ ├── cc3220 │ │ ├── data │ │ │ ├── BTL_ram.ptc │ │ │ └── BTL_sflash.ptc │ │ └── device_control_dummy.go │ ├── rs14100 │ │ └── data │ │ │ └── RS14100_SF_4MB.FLM.bin │ ├── esp8266 │ │ └── stub │ │ │ ├── genstub.sh │ │ │ ├── platform.c │ │ │ └── stub.ld │ ├── cc32xx │ │ ├── device_control.go │ │ └── serial.go │ ├── cc3200 │ │ └── device_control_dummy.go │ ├── common │ │ └── cmsis-dap │ │ │ └── dap │ │ │ └── cmsis_dap_client_dummy.go │ └── stm32 │ │ └── flasher_darwin.go ├── manifest_parser │ ├── test_manifests │ │ ├── .gitignore │ │ ├── test_01_nolibs │ │ │ ├── app │ │ │ │ ├── fs │ │ │ │ │ └── myfile │ │ │ │ ├── src │ │ │ │ │ ├── bar.c │ │ │ │ │ └── foo.c │ │ │ │ └── mos.yml │ │ │ ├── test_desc.yml │ │ │ └── expected │ │ │ │ └── esp8266 │ │ │ │ ├── mgos_deps_manifest.yml │ │ │ │ └── mos_final.yml │ │ ├── test_02_weak_dep_unused │ │ │ ├── libs │ │ │ │ ├── mylib1 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib1_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib1_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib2 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib2_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib2_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib3 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib3_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib3_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib4 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib4_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib4_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ └── core │ │ │ │ │ └── mos.yml │ │ │ ├── app │ │ │ │ └── mos.yml │ │ │ └── expected │ │ │ │ └── esp8266 │ │ │ │ └── mgos_deps_manifest.yml │ │ ├── test_03_weak_dep_used │ │ │ ├── libs │ │ │ │ ├── mylib1 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib1_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib1_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib2 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib2_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib2_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib3 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib3_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib3_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib4 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib4_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib4_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ └── core │ │ │ │ │ └── mos.yml │ │ │ ├── app │ │ │ │ └── mos.yml │ │ │ └── expected │ │ │ │ └── esp8266 │ │ │ │ └── mgos_deps_manifest.yml │ │ ├── test_04_weak_dep_absent │ │ │ ├── libs │ │ │ │ ├── mylib1 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib1_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib1_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib2 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib2_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib2_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib3 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib3_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib3_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib4 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib4_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib4_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ └── core │ │ │ │ │ └── mos.yml │ │ │ ├── app │ │ │ │ └── mos.yml │ │ │ └── expected │ │ │ │ └── esp8266 │ │ │ │ └── mgos_deps_manifest.yml │ │ ├── testset_10_lib_name_settings │ │ │ ├── common │ │ │ │ ├── lib-blank │ │ │ │ │ ├── src │ │ │ │ │ │ └── lib.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── lib1-lib-name │ │ │ │ │ ├── src │ │ │ │ │ └── mos.yml │ │ │ │ └── mylib1-lib-name │ │ │ │ │ ├── src │ │ │ │ │ └── mos.yml │ │ │ ├── test_03_ref_name │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_01_no_name │ │ │ │ ├── libs │ │ │ │ │ ├── core │ │ │ │ │ └── mylib1 │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_02_ref_name_same │ │ │ │ ├── libs │ │ │ │ ├── expected │ │ │ │ └── app │ │ │ │ │ └── mos.yml │ │ │ ├── test_04_lib_name_same │ │ │ │ ├── libs │ │ │ │ │ ├── core │ │ │ │ │ └── mylib1 │ │ │ │ ├── expected │ │ │ │ └── app │ │ │ │ │ └── mos.yml │ │ │ ├── test_05_lib_ref_name_same │ │ │ │ ├── libs │ │ │ │ ├── expected │ │ │ │ └── app │ │ │ │ │ └── mos.yml │ │ │ ├── test_06_lib_ref_name_mismatch │ │ │ │ ├── libs │ │ │ │ ├── expected │ │ │ │ │ └── esp32 │ │ │ │ │ │ └── error.txt │ │ │ │ └── app │ │ │ │ │ └── mos.yml │ │ │ ├── test_07_lib_name_no_ref_name │ │ │ │ ├── libs │ │ │ │ │ ├── core │ │ │ │ │ └── mylib1 │ │ │ │ ├── expected │ │ │ │ │ └── esp32 │ │ │ │ │ │ └── error.txt │ │ │ │ └── app │ │ │ │ │ └── mos.yml │ │ │ ├── test_09_lib_ref_name_match │ │ │ │ ├── expected │ │ │ │ ├── libs │ │ │ │ └── app │ │ │ │ │ └── mos.yml │ │ │ └── test_08_lib_ref_name_mismatch │ │ │ │ ├── libs │ │ │ │ ├── expected │ │ │ │ └── esp32 │ │ │ │ │ └── error.txt │ │ │ │ └── app │ │ │ │ └── mos.yml │ │ ├── testset_07_excluded_files │ │ │ ├── test_04_fs_filters │ │ │ │ ├── app │ │ │ │ │ ├── src │ │ │ │ │ │ └── app_src1.c │ │ │ │ │ ├── fs │ │ │ │ │ │ ├── test.js │ │ │ │ │ │ └── test.txt │ │ │ │ │ └── mos.yml │ │ │ │ ├── libs │ │ │ │ │ ├── mylib1 │ │ │ │ │ │ ├── fs │ │ │ │ │ │ │ ├── mylib1_file1 │ │ │ │ │ │ │ ├── mylib1_file_a1 │ │ │ │ │ │ │ ├── mylib1_file_a2 │ │ │ │ │ │ │ ├── mylib1_file_b1 │ │ │ │ │ │ │ └── mylib1_file_b2 │ │ │ │ │ │ ├── src │ │ │ │ │ │ │ ├── mylib1_srcfoo1.c │ │ │ │ │ │ │ ├── mylib1_srcfoo2.c │ │ │ │ │ │ │ └── mylib1_src1.c │ │ │ │ │ │ └── mos.yml │ │ │ │ │ └── core │ │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_01_excluded_files │ │ │ │ ├── app │ │ │ │ │ ├── src │ │ │ │ │ │ ├── app_src1.c │ │ │ │ │ │ ├── app_src2.c │ │ │ │ │ │ └── app_src3.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── libs │ │ │ │ │ ├── mylib1 │ │ │ │ │ │ ├── fs │ │ │ │ │ │ │ ├── mylib1_file1 │ │ │ │ │ │ │ ├── mylib1_file_a1 │ │ │ │ │ │ │ ├── mylib1_file_a2 │ │ │ │ │ │ │ ├── mylib1_file_b1 │ │ │ │ │ │ │ └── mylib1_file_b2 │ │ │ │ │ │ ├── src │ │ │ │ │ │ │ ├── mylib1_srcfoo1.c │ │ │ │ │ │ │ ├── mylib1_srcfoo2.c │ │ │ │ │ │ │ └── mylib1_src1.c │ │ │ │ │ │ └── mos.yml │ │ │ │ │ └── core │ │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_03_cond_excluded_files │ │ │ │ ├── app │ │ │ │ │ ├── src │ │ │ │ │ │ ├── app_src1.c │ │ │ │ │ │ ├── app_src2.c │ │ │ │ │ │ └── app_src3.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── test_desc.yml │ │ │ │ └── expected │ │ │ │ │ └── esp8266 │ │ │ │ │ ├── mgos_deps_manifest.yml │ │ │ │ │ └── mos_final.yml │ │ │ └── test_02_cond_nonexcluded_files │ │ │ │ ├── app │ │ │ │ ├── src │ │ │ │ │ ├── app_src1.c │ │ │ │ │ ├── app_src2.c │ │ │ │ │ └── app_src3.c │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ └── esp8266 │ │ │ │ ├── mgos_deps_manifest.yml │ │ │ │ └── mos_final.yml │ │ ├── testset_08_conds_with_libs │ │ │ ├── libs_common │ │ │ │ ├── mylib1 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib1_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib1_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── core │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib2 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib2_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ └── mylib3 │ │ │ │ │ └── mos.yml │ │ │ ├── test_01_app_cond_adds_lib │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_02_lib_cond_adds_lib │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_04_lib_conds_recursive │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ └── test_03_lib_and_app_conds_add_same_lib │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ └── esp8266 │ │ │ │ └── mgos_deps_manifest.yml │ │ ├── testset_06_build_vars_overriding │ │ │ ├── libs_common │ │ │ │ ├── mylib1 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib1_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib1_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib2 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib2_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib2_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib3 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib3_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib3_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib4 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib4_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib4_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ └── core │ │ │ │ │ └── mos.yml │ │ │ ├── test_01_override │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_02_override_with_cli │ │ │ │ ├── libs │ │ │ │ ├── test_desc.yml │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ └── test_03_extend_with_cli │ │ │ │ ├── libs │ │ │ │ ├── test_desc.yml │ │ │ │ └── expected │ │ │ │ └── esp8266 │ │ │ │ └── mgos_deps_manifest.yml │ │ ├── testset_04_vars_override_from_root_manifest │ │ │ ├── mylib1_common │ │ │ │ ├── fs │ │ │ │ │ └── mylib1_file1 │ │ │ │ ├── src │ │ │ │ │ └── mylib1_src1.c │ │ │ │ └── mos.yml │ │ │ ├── mylib2_common │ │ │ │ ├── fs │ │ │ │ │ └── mylib2_file1 │ │ │ │ ├── src │ │ │ │ │ └── mylib2_src1.c │ │ │ │ └── mos.yml │ │ │ ├── mylib4_common │ │ │ │ ├── fs │ │ │ │ │ └── mylib4_file1 │ │ │ │ ├── src │ │ │ │ │ └── mylib4_src1.c │ │ │ │ └── mos.yml │ │ │ ├── test_03_in_lib_cond │ │ │ │ ├── libs │ │ │ │ │ ├── mylib3 │ │ │ │ │ │ ├── fs │ │ │ │ │ │ │ └── mylib3_file1 │ │ │ │ │ │ ├── src │ │ │ │ │ │ │ └── mylib3_src1.c │ │ │ │ │ │ └── mos.yml │ │ │ │ │ ├── mylib1 │ │ │ │ │ ├── mylib2 │ │ │ │ │ ├── mylib4 │ │ │ │ │ └── core │ │ │ │ │ │ └── mos.yml │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_01_in_lib_manifest │ │ │ │ ├── libs │ │ │ │ │ ├── mylib1 │ │ │ │ │ ├── mylib2 │ │ │ │ │ ├── mylib3 │ │ │ │ │ │ ├── fs │ │ │ │ │ │ │ └── mylib3_file1 │ │ │ │ │ │ ├── src │ │ │ │ │ │ │ └── mylib3_src1.c │ │ │ │ │ │ └── mos.yml │ │ │ │ │ ├── mylib4 │ │ │ │ │ └── core │ │ │ │ │ │ └── mos.yml │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_02_in_lib_submanifest │ │ │ │ ├── libs │ │ │ │ │ ├── mylib3 │ │ │ │ │ │ ├── fs │ │ │ │ │ │ │ └── mylib3_file1 │ │ │ │ │ │ ├── src │ │ │ │ │ │ │ └── mylib3_src1.c │ │ │ │ │ │ ├── mos_esp32.yml │ │ │ │ │ │ └── mos.yml │ │ │ │ │ ├── mylib1 │ │ │ │ │ ├── mylib2 │ │ │ │ │ ├── mylib4 │ │ │ │ │ └── core │ │ │ │ │ │ └── mos.yml │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ └── test_04_in_lib_manifest_submanifest_cond │ │ │ │ ├── libs │ │ │ │ ├── mylib3 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib3_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib3_src1.c │ │ │ │ │ ├── mos_esp32.yml │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib1 │ │ │ │ ├── mylib2 │ │ │ │ ├── mylib4 │ │ │ │ └── core │ │ │ │ │ └── mos.yml │ │ │ │ ├── app │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ └── esp32 │ │ │ │ └── mgos_deps_manifest.yml │ │ ├── testset_01_conds_switch_with_arch_manifests │ │ │ ├── libs_common │ │ │ │ ├── mylib1 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib1_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib1_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib2 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib2_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib2_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib3 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib3_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib3_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib4 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib4_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ ├── foo │ │ │ │ │ │ │ └── mylib4_foo_src1.c │ │ │ │ │ │ └── mylib4_src1.c │ │ │ │ │ ├── mos_esp32.yml │ │ │ │ │ ├── mos_esp8266.yml │ │ │ │ │ └── mos.yml │ │ │ │ └── core │ │ │ │ │ └── mos.yml │ │ │ ├── test_01_app_doesnt_override │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ ├── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_02_app_overrides_to_1 │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ ├── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ └── test_03_app_overrides_to_0 │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ ├── esp32 │ │ │ │ └── mgos_deps_manifest.yml │ │ │ │ └── esp8266 │ │ │ │ └── mgos_deps_manifest.yml │ │ ├── testset_05_platforms_restriction │ │ │ └── test_01_platforms │ │ │ │ ├── libs │ │ │ │ ├── mylib1 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib1_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib1_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib2 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib2_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib2_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib3 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib3_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib3_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib4 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib4_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib4_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ └── core │ │ │ │ │ └── mos.yml │ │ │ │ ├── app │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ └── esp8266 │ │ │ │ └── mgos_deps_manifest.yml │ │ ├── testset_02_conds_switch_without_arch_manifests │ │ │ ├── libs_common │ │ │ │ ├── mylib1 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib1_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib1_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib2 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib2_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib2_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib3 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib3_file1 │ │ │ │ │ ├── src │ │ │ │ │ │ └── mylib3_src1.c │ │ │ │ │ └── mos.yml │ │ │ │ ├── mylib4 │ │ │ │ │ ├── fs │ │ │ │ │ │ └── mylib4_file1 │ │ │ │ │ └── src │ │ │ │ │ │ ├── foo │ │ │ │ │ │ └── mylib4_foo_src1.c │ │ │ │ │ │ └── mylib4_src1.c │ │ │ │ └── core │ │ │ │ │ └── mos.yml │ │ │ ├── test_01_app_doesnt_override │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ ├── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_02_app_overrides_to_1 │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ ├── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_03_app_overrides_to_0 │ │ │ │ ├── libs │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ ├── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_04_app_overrides_to_1_cli_overrides_to_0 │ │ │ │ ├── libs │ │ │ │ ├── test_desc.yml │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ ├── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ │ │ └── esp8266 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ └── test_05_app_overrides_to_0_cli_overrides_to_1 │ │ │ │ ├── libs │ │ │ │ ├── test_desc.yml │ │ │ │ ├── app │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ ├── esp32 │ │ │ │ └── mgos_deps_manifest.yml │ │ │ │ └── esp8266 │ │ │ │ └── mgos_deps_manifest.yml │ │ ├── testset_11_lib_overrides │ │ │ ├── test_01_same_loc_dflt_names │ │ │ │ ├── libs │ │ │ │ │ ├── core │ │ │ │ │ ├── mylib1 │ │ │ │ │ └── mylib2 │ │ │ │ │ │ └── mos.yml │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_02_diff_loc_dflt_names │ │ │ │ ├── libs │ │ │ │ │ ├── core │ │ │ │ │ ├── mylib1 │ │ │ │ │ ├── subdir │ │ │ │ │ │ └── mylib1 │ │ │ │ │ └── mylib2 │ │ │ │ │ │ └── mos.yml │ │ │ │ ├── expected │ │ │ │ └── app │ │ │ │ │ └── mos.yml │ │ │ ├── test_04_diff_loc_lower_mft_name │ │ │ │ ├── libs │ │ │ │ │ ├── core │ │ │ │ │ ├── lib1 │ │ │ │ │ ├── mylib1 │ │ │ │ │ └── mylib2 │ │ │ │ │ │ └── mos.yml │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── test_06_diff_loc_lower_ref_name │ │ │ │ ├── libs │ │ │ │ │ ├── core │ │ │ │ │ ├── lib1 │ │ │ │ │ ├── mylib1 │ │ │ │ │ └── mylib2 │ │ │ │ │ │ └── mos.yml │ │ │ │ ├── expected │ │ │ │ └── app │ │ │ │ │ └── mos.yml │ │ │ ├── test_07_unreadable_overridden │ │ │ │ ├── libs │ │ │ │ │ ├── core │ │ │ │ │ ├── lib1 │ │ │ │ │ ├── mylib1 │ │ │ │ │ └── mylib2 │ │ │ │ │ │ └── mos.yml │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp32 │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ ├── common │ │ │ │ ├── lib-blank │ │ │ │ └── lib1-mft-name │ │ │ ├── test_03_diff_loc_higher_mft_name │ │ │ │ ├── libs │ │ │ │ │ ├── core │ │ │ │ │ ├── lib1 │ │ │ │ │ ├── mylib1 │ │ │ │ │ └── mylib2 │ │ │ │ │ │ └── mos.yml │ │ │ │ ├── expected │ │ │ │ │ └── esp32 │ │ │ │ │ │ └── mgos_deps_manifest.yml │ │ │ │ └── app │ │ │ │ │ └── mos.yml │ │ │ └── test_05_diff_loc_higher_ref_name │ │ │ │ ├── libs │ │ │ │ ├── core │ │ │ │ ├── lib1 │ │ │ │ ├── mylib1 │ │ │ │ └── mylib2 │ │ │ │ │ └── mos.yml │ │ │ │ ├── expected │ │ │ │ └── app │ │ │ │ └── mos.yml │ │ ├── testset_09_error │ │ │ ├── test_01_error_app │ │ │ │ ├── app │ │ │ │ │ └── mos.yml │ │ │ │ └── expected │ │ │ │ │ └── esp8266 │ │ │ │ │ └── error.txt │ │ │ ├── test_02_error_lib │ │ │ │ ├── libs │ │ │ │ │ └── core │ │ │ │ │ │ └── mos.yml │ │ │ │ ├── expected │ │ │ │ │ └── esp8266 │ │ │ │ │ │ └── error.txt │ │ │ │ └── app │ │ │ │ │ └── mos.yml │ │ │ ├── test_03_error_app_cond │ │ │ │ ├── expected │ │ │ │ │ ├── esp32 │ │ │ │ │ │ └── error.txt │ │ │ │ │ └── esp8266 │ │ │ │ │ │ ├── mgos_deps_manifest.yml │ │ │ │ │ │ └── mos_final.yml │ │ │ │ └── app │ │ │ │ │ └── mos.yml │ │ │ └── test_04_error_lib_cond │ │ │ │ ├── expected │ │ │ │ ├── esp32 │ │ │ │ │ └── error.txt │ │ │ │ └── esp8266 │ │ │ │ │ ├── mgos_deps_manifest.yml │ │ │ │ │ └── mos_final.yml │ │ │ │ ├── app │ │ │ │ └── mos.yml │ │ │ │ └── libs │ │ │ │ └── core │ │ │ │ └── mos.yml │ │ └── test_05_lib_override │ │ │ ├── libs │ │ │ ├── core │ │ │ │ └── mos.yml │ │ │ ├── mylib2 │ │ │ │ └── mos.yml │ │ │ ├── mylib2a │ │ │ │ └── mos.yml │ │ │ └── mylib1 │ │ │ │ └── mos.yml │ │ │ ├── test_desc.yml │ │ │ ├── app │ │ │ └── mos.yml │ │ │ └── expected │ │ │ └── esp8266 │ │ │ └── mgos_deps_manifest.yml │ ├── test_repo_root │ │ └── platforms │ │ │ ├── cc3200 │ │ │ └── sdk.version │ │ │ ├── esp32 │ │ │ └── sdk.version │ │ │ ├── ubuntu │ │ │ └── sdk.version │ │ │ └── esp8266 │ │ │ └── sdk.version │ └── data │ │ └── root_manifest.yml ├── web_root │ ├── images │ │ └── logo.png │ ├── fonts │ │ ├── Metropolis-Bold.otf │ │ └── Metropolis-Regular.otf │ ├── index.html │ └── css │ │ └── style.css ├── tools.go ├── LICENSE ├── mdash │ └── mdash.go ├── os_linux.go ├── devutil │ ├── serial_posix.go │ └── serial_linux.go └── common │ ├── stat.go │ └── form.go ├── fwbuild ├── .gitignore ├── Makefile ├── manager │ └── web_root │ │ └── index.html ├── docker-compose.yml └── common │ └── fwbuild_common.go ├── tools ├── docker │ ├── push_test │ │ └── Dockerfile │ ├── fwbuild-manager │ │ ├── Dockerfile │ │ └── Makefile │ ├── fwbuild-instance │ │ ├── Dockerfile │ │ └── Makefile │ ├── mos │ │ ├── Makefile │ │ └── Dockerfile │ └── golang │ │ ├── Dockerfile.golang-mingw │ │ └── Dockerfile.ubuntu-golang ├── ansible │ ├── include │ │ └── systemd_cron │ │ │ ├── templates │ │ │ ├── job.sh │ │ │ ├── job.service │ │ │ └── job.timer │ │ │ └── tasks │ │ │ └── main.yml │ ├── hosts.yml │ ├── fwbuild.yml │ ├── ansible.cfg │ └── fwbuild │ │ ├── defaults │ │ └── main.yml │ │ └── README.md ├── ubuntu │ ├── mos-latest-bionic.recipe │ ├── mos-latest-focal.recipe │ ├── mos-latest-jammy.recipe │ ├── mos-latest-kinetic.recipe │ ├── mos-latest-xenial.recipe │ ├── mos-bionic.recipe │ ├── mos-focal.recipe │ ├── mos-jammy.recipe │ ├── mos-xenial.recipe │ ├── mos-kinetic.recipe │ └── upload-deb.sh └── archlinux_pkgbuild │ ├── mos-latest │ └── PKGBUILD │ └── mos-release │ └── PKGBUILD ├── downloads └── mos │ ├── libftdi1.2.dylib │ └── libusb-1.0.0.dylib ├── common ├── ourzip │ └── README.md └── mgrpc │ └── transport_string.go ├── .clang-format ├── .gitignore ├── LICENSE └── .github └── workflows └── go.yml /go/.gitignore: -------------------------------------------------------------------------------- 1 | .cache/ 2 | pkg/ 3 | bin/ 4 | -------------------------------------------------------------------------------- /cli/flash/esp/.gitattributes: -------------------------------------------------------------------------------- 1 | data/stub*.json -diff 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_01_nolibs/app/fs/myfile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_01_nolibs/app/src/bar.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_01_nolibs/app/src/foo.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fwbuild/.gitignore: -------------------------------------------------------------------------------- 1 | instance/instance 2 | manager/manager 3 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_repo_root/platforms/cc3200/sdk.version: -------------------------------------------------------------------------------- 1 | dummy 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_repo_root/platforms/esp32/sdk.version: -------------------------------------------------------------------------------- 1 | dummy 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_repo_root/platforms/ubuntu/sdk.version: -------------------------------------------------------------------------------- 1 | dummy 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_repo_root/platforms/esp8266/sdk.version: -------------------------------------------------------------------------------- 1 | dummy 2 | -------------------------------------------------------------------------------- /cli/flash/esp32/stub/sdkconfig.h: -------------------------------------------------------------------------------- 1 | #define CONFIG_SPI_FLASH_ROM_DRIVER_PATCH 1 2 | -------------------------------------------------------------------------------- /cli/flash/esp32c3/stub/sdkconfig.h: -------------------------------------------------------------------------------- 1 | #define CONFIG_SPI_FLASH_ROM_DRIVER_PATCH 1 2 | -------------------------------------------------------------------------------- /cli/flash/esp32s3/stub/sdkconfig.h: -------------------------------------------------------------------------------- 1 | #define CONFIG_SPI_FLASH_ROM_DRIVER_PATCH 1 2 | -------------------------------------------------------------------------------- /tools/docker/push_test/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM hello-world:latest 2 | 3 | ENV FOO=bar 4 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib1/fs/mylib1_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib2/fs/mylib2_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib3/fs/mylib3_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib4/fs/mylib4_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib1/fs/mylib1_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib2/fs/mylib2_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib3/fs/mylib3_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib4/fs/mylib4_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib1/fs/mylib1_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib2/fs/mylib2_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib3/fs/mylib3_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib4/fs/mylib4_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/common/lib-blank/src/lib.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/app/src/app_src1.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/libs_common/mylib1/fs/mylib1_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib1/fs/mylib1_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib2/fs/mylib2_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib3/fs/mylib3_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib4/fs/mylib4_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_01_override/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/app/src/app_src1.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/app/src/app_src2.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/app/src/app_src3.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/mylib1_common/fs/mylib1_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/mylib2_common/fs/mylib2_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/mylib4_common/fs/mylib4_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_03_cond_excluded_files/app/src/app_src1.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_03_cond_excluded_files/app/src/app_src2.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_03_cond_excluded_files/app/src/app_src3.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/libs/mylib1/fs/mylib1_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_01_app_cond_adds_lib/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_02_lib_cond_adds_lib/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_04_lib_conds_recursive/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/common/lib1-lib-name/src: -------------------------------------------------------------------------------- 1 | ../lib-blank/src -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/common/mylib1-lib-name/src: -------------------------------------------------------------------------------- 1 | ../lib-blank/src -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_03_ref_name/libs: -------------------------------------------------------------------------------- 1 | ../test_01_no_name/libs -------------------------------------------------------------------------------- /cli/web_root/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongoose-os/mos/HEAD/cli/web_root/images/logo.png -------------------------------------------------------------------------------- /tools/ansible/include/systemd_cron/templates/job.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | {{ cmd }} 6 | 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib1/fs/mylib1_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib2/fs/mylib2_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib3/fs/mylib3_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib4/fs/mylib4_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib1/fs/mylib1_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib2/fs/mylib2_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib3/fs/mylib3_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib4/fs/mylib4_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_02_override_with_cli/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_03_extend_with_cli/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/libs/mylib1/fs/mylib1_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/libs/mylib1/fs/mylib1_file_a1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/libs/mylib1/fs/mylib1_file_a2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/libs/mylib1/fs/mylib1_file_b1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/libs/mylib1/fs/mylib1_file_b2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_02_cond_nonexcluded_files/app/src/app_src1.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_02_cond_nonexcluded_files/app/src/app_src2.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_02_cond_nonexcluded_files/app/src/app_src3.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/libs/mylib1/fs/mylib1_file_a1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/libs/mylib1/fs/mylib1_file_a2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/libs/mylib1/fs/mylib1_file_b1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/libs/mylib1/fs/mylib1_file_b2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/libs/mylib1/src/mylib1_srcfoo1.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/libs/mylib1/src/mylib1_srcfoo2.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_01_no_name/libs/core: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_01_no_name/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_02_ref_name_same/libs: -------------------------------------------------------------------------------- 1 | ../test_01_no_name/libs -------------------------------------------------------------------------------- /downloads/mos/libftdi1.2.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongoose-os/mos/HEAD/downloads/mos/libftdi1.2.dylib -------------------------------------------------------------------------------- /cli/flash/cc3220/data/BTL_ram.ptc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongoose-os/mos/HEAD/cli/flash/cc3220/data/BTL_ram.ptc -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib1/fs/mylib1_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib2/fs/mylib2_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib3/fs/mylib3_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib4/fs/mylib4_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/libs/mylib1/src/mylib1_srcfoo1.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/libs/mylib1/src/mylib1_srcfoo2.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_04_lib_name_same/libs/core: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /downloads/mos/libusb-1.0.0.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongoose-os/mos/HEAD/downloads/mos/libusb-1.0.0.dylib -------------------------------------------------------------------------------- /cli/flash/cc3220/data/BTL_sflash.ptc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongoose-os/mos/HEAD/cli/flash/cc3220/data/BTL_sflash.ptc -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib4/src/foo/mylib4_foo_src1.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/app/fs/test.js: -------------------------------------------------------------------------------- 1 | // this file is excluded 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/app/fs/test.txt: -------------------------------------------------------------------------------- 1 | this file is included 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_03_lib_and_app_conds_add_same_lib/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_02_ref_name_same/expected: -------------------------------------------------------------------------------- 1 | ../test_01_no_name/expected -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_04_lib_name_same/expected: -------------------------------------------------------------------------------- 1 | ../test_01_no_name/expected -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_05_lib_ref_name_same/libs: -------------------------------------------------------------------------------- 1 | ../test_04_lib_name_same/libs -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_01_same_loc_dflt_names/libs/core: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_01_same_loc_dflt_names/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_02_diff_loc_dflt_names/libs/core: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_02_diff_loc_dflt_names/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_04_diff_loc_lower_mft_name/libs/core: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_04_diff_loc_lower_mft_name/libs/lib1: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_06_diff_loc_lower_ref_name/libs/core: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_06_diff_loc_lower_ref_name/libs/lib1: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_07_unreadable_overridden/libs/core: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_07_unreadable_overridden/libs/lib1: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_07_unreadable_overridden/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /tools/ansible/hosts.yml: -------------------------------------------------------------------------------- 1 | fwbuild: 2 | hosts: 3 | build.mongoose-os.com 4 | vars: 5 | ansible_ssh_user: root 6 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_01_app_doesnt_override/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_02_app_overrides_to_1/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_03_app_overrides_to_0/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib4/src/foo/mylib4_foo_src1.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_01_app_doesnt_override/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_02_app_overrides_to_1/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_03_app_overrides_to_0/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_03_in_lib_cond/libs/mylib3/fs/mylib3_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_04_lib_name_same/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../common/mylib1-lib-name -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_05_lib_ref_name_same/expected: -------------------------------------------------------------------------------- 1 | ../test_01_no_name/expected -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_06_lib_ref_name_mismatch/libs: -------------------------------------------------------------------------------- 1 | ../test_04_lib_name_same/libs -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_07_lib_name_no_ref_name/libs/core: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_09_lib_ref_name_match/expected: -------------------------------------------------------------------------------- 1 | ../test_03_ref_name/expected -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/common/lib-blank: -------------------------------------------------------------------------------- 1 | ../../testset_10_lib_name_settings/common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_03_diff_loc_higher_mft_name/libs/core: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_03_diff_loc_higher_mft_name/libs/lib1: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_05_diff_loc_higher_ref_name/libs/core: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_05_diff_loc_higher_ref_name/libs/lib1: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_05_diff_loc_higher_ref_name/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../common/lib-blank -------------------------------------------------------------------------------- /cli/web_root/fonts/Metropolis-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongoose-os/mos/HEAD/cli/web_root/fonts/Metropolis-Bold.otf -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_01_in_lib_manifest/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../mylib1_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_01_in_lib_manifest/libs/mylib2: -------------------------------------------------------------------------------- 1 | ../../mylib2_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_01_in_lib_manifest/libs/mylib3/fs/mylib3_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_01_in_lib_manifest/libs/mylib4: -------------------------------------------------------------------------------- 1 | ../../mylib4_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_02_in_lib_submanifest/libs/mylib3/fs/mylib3_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_03_in_lib_cond/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../mylib1_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_03_in_lib_cond/libs/mylib2: -------------------------------------------------------------------------------- 1 | ../../mylib2_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_03_in_lib_cond/libs/mylib4: -------------------------------------------------------------------------------- 1 | ../../mylib4_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_03_cond_excluded_files/test_desc.yml: -------------------------------------------------------------------------------- 1 | build_vars: 2 | FOO: bar 3 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_07_lib_name_no_ref_name/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../common/lib1-lib-name -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_09_lib_ref_name_match/libs: -------------------------------------------------------------------------------- 1 | ../test_07_lib_name_no_ref_name/libs -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_02_diff_loc_dflt_names/libs/subdir/mylib1: -------------------------------------------------------------------------------- 1 | ../../../common/lib-blank -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_03_diff_loc_higher_mft_name/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../common/lib1-mft-name -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_04_diff_loc_lower_mft_name/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../common/lib1-mft-name -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_06_diff_loc_lower_ref_name/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../common/lib1-mft-name -------------------------------------------------------------------------------- /cli/web_root/fonts/Metropolis-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongoose-os/mos/HEAD/cli/web_root/fonts/Metropolis-Regular.otf -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_02_in_lib_submanifest/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../mylib1_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_02_in_lib_submanifest/libs/mylib2: -------------------------------------------------------------------------------- 1 | ../../mylib2_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_02_in_lib_submanifest/libs/mylib4: -------------------------------------------------------------------------------- 1 | ../../mylib4_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_01_error_app/app/mos.yml: -------------------------------------------------------------------------------- 1 | error: BOOM 2 | 3 | manifest_version: 2019-04-26 4 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_08_lib_ref_name_mismatch/libs: -------------------------------------------------------------------------------- 1 | ../test_07_lib_name_no_ref_name/libs -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/common/lib1-mft-name: -------------------------------------------------------------------------------- 1 | ../../testset_10_lib_name_settings/common/lib1-lib-name -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_02_diff_loc_dflt_names/expected: -------------------------------------------------------------------------------- 1 | ../test_01_same_loc_dflt_names/expected -------------------------------------------------------------------------------- /cli/flash/rs14100/data/RS14100_SF_4MB.FLM.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongoose-os/mos/HEAD/cli/flash/rs14100/data/RS14100_SF_4MB.FLM.bin -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_06_diff_loc_lower_ref_name/expected: -------------------------------------------------------------------------------- 1 | ../test_04_diff_loc_lower_mft_name/expected -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_04_app_overrides_to_1_cli_overrides_to_0/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_05_app_overrides_to_0_cli_overrides_to_1/libs: -------------------------------------------------------------------------------- 1 | ../libs_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_04_in_lib_manifest_submanifest_cond/libs/mylib3/fs/mylib3_file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_05_diff_loc_higher_ref_name/expected: -------------------------------------------------------------------------------- 1 | ../test_03_diff_loc_higher_mft_name/expected -------------------------------------------------------------------------------- /tools/ansible/fwbuild.yml: -------------------------------------------------------------------------------- 1 | # See fwbuild/README.md 2 | 3 | - hosts: fwbuild 4 | gather_facts: no 5 | 6 | roles: 7 | - role: fwbuild 8 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_04_in_lib_manifest_submanifest_cond/libs/mylib1: -------------------------------------------------------------------------------- 1 | ../../mylib1_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_04_in_lib_manifest_submanifest_cond/libs/mylib2: -------------------------------------------------------------------------------- 1 | ../../mylib2_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_04_in_lib_manifest_submanifest_cond/libs/mylib4: -------------------------------------------------------------------------------- 1 | ../../mylib4_common -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_01_error_app/expected/esp8266/error.txt: -------------------------------------------------------------------------------- 1 | testset_09_error/test_01_error_app/app/mos.yml: BOOM 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_02_error_lib/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | error: The core is rotten 2 | 3 | manifest_version: 2019-04-26 4 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/common/lib-blank/mos.yml: -------------------------------------------------------------------------------- 1 | type: lib 2 | sources: [src] 3 | manifest_version: 2020-08-02 4 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_02_override_with_cli/test_desc.yml: -------------------------------------------------------------------------------- 1 | build_vars: 2 | LIB4_VAR2: from_cli 3 | EXT_VAR: hello 4 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_02_error_lib/expected/esp8266/error.txt: -------------------------------------------------------------------------------- 1 | testset_09_error/test_02_error_lib/libs/core/mos.yml: The core is rotten 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/common/lib1-lib-name/mos.yml: -------------------------------------------------------------------------------- 1 | name: lib1 2 | type: lib 3 | sources: [src] 4 | manifest_version: 2020-08-02 5 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_01_nolibs/test_desc.yml: -------------------------------------------------------------------------------- 1 | repo_info: 2 | https://github.com/cesanta/mongoose-os: 3 | repo_version: 2a2b2c 4 | repo_dirty: true 5 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/common/mylib1-lib-name/mos.yml: -------------------------------------------------------------------------------- 1 | type: lib 2 | name: mylib1 3 | sources: [src] 4 | manifest_version: 2020-08-02 5 | -------------------------------------------------------------------------------- /common/ourzip/README.md: -------------------------------------------------------------------------------- 1 | This is `archive/zip` from Go 1.10 + Writer.AddFile() to produce non-streaming archives (with file size and CRC in the header, as required by our updater). 2 | -------------------------------------------------------------------------------- /tools/ansible/ansible.cfg: -------------------------------------------------------------------------------- 1 | [defaults] 2 | inventory=hosts.yml 3 | interpreter_python=auto 4 | 5 | [ssh_connection] 6 | ssh_args="-o CheckHostIP=no -o StrictHostKeyChecking=no" 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_04_app_overrides_to_1_cli_overrides_to_0/test_desc.yml: -------------------------------------------------------------------------------- 1 | build_vars: 2 | MYLIB4_SWITCH_FOO: 0 3 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_05_app_overrides_to_0_cli_overrides_to_1/test_desc.yml: -------------------------------------------------------------------------------- 1 | build_vars: 2 | MYLIB4_SWITCH_FOO: 1 3 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_03_error_app_cond/expected/esp32/error.txt: -------------------------------------------------------------------------------- 1 | testset_09_error/test_03_error_app_cond/app/mos.yml cond 1: Unsupported platform 2 | -------------------------------------------------------------------------------- /tools/ansible/include/systemd_cron/templates/job.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description={{ name }} 3 | 4 | [Service] 5 | Type=oneshot 6 | ExecStart=/etc/systemd/cron-scripts/{{ name }}.sh 7 | -------------------------------------------------------------------------------- /tools/docker/fwbuild-manager/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:jammy 2 | RUN echo '{}' > /root/.dockercfg 3 | ADD fwbuild-manager /usr/local/bin 4 | ENTRYPOINT ["/usr/local/bin/fwbuild-manager"] 5 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_05_lib_override/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_04_error_lib_cond/expected/esp32/error.txt: -------------------------------------------------------------------------------- 1 | testset_09_error/test_04_error_lib_cond/libs/core/mos.yml cond 1: Unsupported platform 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/tools.go: -------------------------------------------------------------------------------- 1 | // +build tools 2 | 3 | package main 4 | 5 | import ( 6 | _ "github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs" 7 | _ "github.com/go-bindata/go-bindata/go-bindata" 8 | ) 9 | -------------------------------------------------------------------------------- /.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | AllowShortFunctionsOnASingleLine: false 3 | SpaceAfterCStyleCast: true 4 | PointerBindsToType: false 5 | DerivePointerBinding: false 6 | IncludeBlocks: Preserve 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/libs_common/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_07_unreadable_overridden/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | type: lib 2 | manifest_version: 2020-08-02 3 | 4 | libs: 5 | - location: libs/non-existent/lib1 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | downloads/* 2 | fwbuild-instance 3 | fwbuild-manager 4 | mos 5 | mos.exe 6 | mos/cli 7 | mos/mos 8 | pkg.build_id 9 | pkg.version 10 | vendor/ 11 | version/version.json 12 | version/version.go 13 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_02_error_lib/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My app 3 | version: 1.0 4 | 5 | # Core dep is added implicitly 6 | 7 | manifest_version: 2019-04-26 8 | -------------------------------------------------------------------------------- /tools/docker/fwbuild-instance/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:jammy 2 | RUN apt-get update && apt-get install -y zip unzip && apt-get clean 3 | ADD fwbuild-instance /usr/local/bin 4 | ENTRYPOINT ["/usr/local/bin/fwbuild-instance"] 5 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_04_error_lib_cond/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My app 3 | version: 1.0 4 | 5 | # Core dep is added implicitly 6 | 7 | manifest_version: 2019-04-26 8 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_01_same_loc_dflt_names/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | type: lib 2 | manifest_version: 2020-08-02 3 | 4 | libs: 5 | - location: libs/mylib1 6 | version: 1.0-from-mylib2 7 | -------------------------------------------------------------------------------- /cli/flash/esp32/stub/genstub.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | scriptdir=$(realpath $(dirname $0)) 4 | 5 | set -e -x 6 | 7 | make -C "$scriptdir" \ 8 | LIBS="led.c platform.c spi_flash_rom_patch.c uart.c" \ 9 | STUB="stub.json" 10 | -------------------------------------------------------------------------------- /cli/flash/esp32s3/stub/spi_flash_rom_patch.c: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | */ 6 | // We keep this file here only for future use 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_03_in_lib_cond/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_03_diff_loc_higher_mft_name/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | type: lib 2 | manifest_version: 2020-08-02 3 | 4 | libs: 5 | - location: libs/lib1 6 | version: 1.0-from-mylib2 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_05_diff_loc_higher_ref_name/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | type: lib 2 | manifest_version: 2020-08-02 3 | 4 | libs: 5 | - location: libs/lib1 6 | version: 1.0-from-mylib2 7 | -------------------------------------------------------------------------------- /tools/ansible/include/systemd_cron/templates/job.timer: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Runs {{ name }}.service 3 | 4 | [Timer] 5 | OnCalendar={{ time }} 6 | Unit={{ name }}.service 7 | 8 | [Install] 9 | WantedBy=multi-user.target 10 | -------------------------------------------------------------------------------- /cli/flash/esp32c3/stub/genstub.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | scriptdir=$(realpath $(dirname $0)) 4 | 5 | set -e -x 6 | 7 | make -C "$scriptdir" \ 8 | LIBS="led.c platform.c spi_flash_rom_patch.c uart.c" \ 9 | STUB="stub.json" 10 | -------------------------------------------------------------------------------- /cli/flash/esp32s3/stub/genstub.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | scriptdir=$(realpath $(dirname $0)) 4 | 5 | set -e -x 6 | 7 | make -C "$scriptdir" \ 8 | LIBS="led.c platform.c spi_flash_rom_patch.c uart.c" \ 9 | STUB="stub.json" 10 | -------------------------------------------------------------------------------- /cli/flash/esp8266/stub/genstub.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | scriptdir=$(realpath $(dirname $0)) 4 | 5 | set -e -x 6 | 7 | make -C "$scriptdir" \ 8 | LIBS="../../esp/stub/miniz.c led.c platform.c uart.c" \ 9 | STUB="stub.json" 10 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_01_in_lib_manifest/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_02_in_lib_submanifest/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_02_diff_loc_dflt_names/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | type: lib 2 | manifest_version: 2020-08-02 3 | 4 | libs: 5 | - location: libs/subdir/mylib1 6 | version: 1.0-from-mylib2 7 | -------------------------------------------------------------------------------- /fwbuild/Makefile: -------------------------------------------------------------------------------- 1 | REPO = .. 2 | 3 | all: run 4 | 5 | # Run fwbuild-manager locally at the port 8000 6 | run: 7 | $(MAKE) -C $(REPO)/tools/docker/fwbuild-instance 8 | $(MAKE) -C $(REPO)/tools/docker/fwbuild-manager 9 | docker-compose up 10 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_04_in_lib_manifest_submanifest_cond/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | manifest_version: 2018-06-20 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_04_diff_loc_lower_mft_name/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | type: lib 2 | manifest_version: 2020-08-02 3 | 4 | libs: 5 | - location: libs/mylib1 6 | name: lib1 7 | version: 1.0-from-mylib2 8 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_06_diff_loc_lower_ref_name/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | type: lib 2 | manifest_version: 2020-08-02 3 | 4 | libs: 5 | - location: libs/mylib1 6 | name: lib1 7 | version: 1.0-from-mylib2 8 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_05_lib_override/test_desc.yml: -------------------------------------------------------------------------------- 1 | repo_info: 2 | https://github.com/cesanta/mongoose-os: 3 | repo_version: 2a2b2c 4 | repo_dirty: true 5 | https://github.com/mongoose-os-libs/core: 6 | repo_version: deadbeef 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_03_error_app_cond/app/mos.yml: -------------------------------------------------------------------------------- 1 | conds: 2 | - when: mos.platform != "esp8266" 3 | apply: 4 | error: Unsupported platform 5 | 6 | no_implicit_init_deps: true 7 | 8 | manifest_version: 2019-04-26 9 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_06_lib_ref_name_mismatch/expected/esp32/error.txt: -------------------------------------------------------------------------------- 1 | Library "mylib1" at "libs/mylib1" is referred to as "lib1" from "test_manifests/testset_10_lib_name_settings/test_06_lib_ref_name_mismatch/app/mos.yml" 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_07_lib_name_no_ref_name/expected/esp32/error.txt: -------------------------------------------------------------------------------- 1 | Library "lib1" at "libs/mylib1" must be referred to as "lib1" from "test_manifests/testset_10_lib_name_settings/test_07_lib_name_no_ref_name/app/mos.yml" 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_08_lib_ref_name_mismatch/expected/esp32/error.txt: -------------------------------------------------------------------------------- 1 | Library "lib1" at "libs/mylib1" is referred to as "mylib1" from "test_manifests/testset_10_lib_name_settings/test_08_lib_ref_name_mismatch/app/mos.yml" 2 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_02_lib_cond_adds_lib/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | libs: 6 | - location: https://github.com/mongoose-os-libs/mylib2 7 | 8 | manifest_version: 2018-08-29 9 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_03_error_app_cond/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | modules: 3 | - name: mongoose-os 4 | location: https://github.com/cesanta/mongoose-os 5 | version: "0.01" 6 | manifest_version: "2021-03-26" 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_04_lib_conds_recursive/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | libs: 6 | - location: https://github.com/mongoose-os-libs/mylib3 7 | 8 | manifest_version: 2018-08-29 9 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib1/src/mylib1_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib2/src/mylib2_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib3/src/mylib3_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib4/src/mylib4_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib1/src/mylib1_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib2/src/mylib2_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib3/src/mylib3_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib4/src/mylib4_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib1/src/mylib1_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib2/src/mylib2_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib3/src/mylib3_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib4/src/mylib4_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_02_cond_nonexcluded_files/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | modules: 3 | - name: mongoose-os 4 | location: https://github.com/cesanta/mongoose-os 5 | version: "0.01" 6 | manifest_version: "2021-03-26" 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_03_cond_excluded_files/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | modules: 3 | - name: mongoose-os 4 | location: https://github.com/cesanta/mongoose-os 5 | version: "0.01" 6 | manifest_version: "2021-03-26" 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/libs_common/mylib1/src/mylib1_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/libs_common/mylib2/src/mylib2_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_01_nolibs/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: test-app 2 | modules: 3 | - name: mongoose-os 4 | location: https://github.com/cesanta/mongoose-os 5 | version: 1.2.3 6 | repo_version: 2a2b2c 7 | repo_dirty: true 8 | manifest_version: "2021-03-26" 9 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_05_lib_override/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib2 3 | type: lib 4 | version: 1.0 5 | 6 | config_schema: 7 | - ["mylib2", "o", {title: "mylib2 settings"}] 8 | 9 | cdefs: 10 | FOO: 1 11 | 12 | manifest_version: 2017-09-29 13 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_05_lib_override/libs/mylib2a/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib2a 3 | type: lib 4 | version: 2.0 5 | 6 | config_schema: 7 | - ["mylib2", "o", {title: "mylib2a settings"}] 8 | 9 | cdefs: 10 | BAR: 1 11 | 12 | manifest_version: 2017-09-29 13 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib1/src/mylib1_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mylib1_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib2/src/mylib2_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mylib2_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib3/src/mylib3_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mylib3_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib4/src/mylib4_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mylib4_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib1/src/mylib1_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib2/src/mylib2_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib3/src/mylib3_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib4/src/mylib4_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/mylib1_common/src/mylib1_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/mylib2_common/src/mylib2_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/mylib4_common/src/mylib4_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/libs/mylib1/src/mylib1_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib1/src/mylib1_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib2/src/mylib2_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib3/src/mylib3_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib4/src/mylib4_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/libs/mylib1/src/mylib1_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib1/src/mylib1_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib2/src/mylib2_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib3/src/mylib3_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib4/src/mylib4_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_04_error_lib_cond/libs/core/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: MyCoreLib 3 | type: lib 4 | version: 1.0 5 | 6 | conds: 7 | - when: mos.platform != "esp8266" 8 | apply: 9 | error: Unsupported platform 10 | 11 | manifest_version: 2019-04-26 12 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_01_in_lib_manifest/libs/mylib3/src/mylib3_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_03_in_lib_cond/libs/mylib3/src/mylib3_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_01_nolibs/app/mos.yml: -------------------------------------------------------------------------------- 1 | name: test-app 2 | author: mongoose-os 3 | description: My nolibs app 4 | version: 1.0 5 | 6 | mongoose_os_version: 1.2.3 7 | 8 | sources: 9 | - src 10 | 11 | filesystem: 12 | - fs 13 | 14 | no_implicit_init_deps: true 15 | 16 | manifest_version: 2018-06-20 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib1/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | filesystem: 9 | - fs 10 | 11 | config_schema: 12 | - ["mylib1", "o", {title: "mylib1 settings"}] 13 | 14 | manifest_version: 2017-09-29 15 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib1/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.2.3 5 | 6 | sources: 7 | - src 8 | filesystem: 9 | - fs 10 | 11 | config_schema: 12 | - ["mylib1", "o", {title: "mylib1 settings"}] 13 | 14 | manifest_version: 2017-09-29 15 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib1/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | filesystem: 9 | - fs 10 | 11 | config_schema: 12 | - ["mylib1", "o", {title: "mylib1 settings"}] 13 | 14 | manifest_version: 2017-09-29 15 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_02_in_lib_submanifest/libs/mylib3/src/mylib3_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /tools/ubuntu/mos-latest-bionic.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {revtime}+{git-commit}~bionic0 2 | 3 | # Build from local repo (volume-mount a clone of https://github.com/mongoose-os/mos.git to /src): 4 | /src master 5 | merge deb-latest https://github.com/mongoose-os/mos.git deb-latest 6 | run rsync -a /src/vendor/ vendor/ 7 | -------------------------------------------------------------------------------- /tools/ubuntu/mos-latest-focal.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {revtime}+{git-commit}~focal0 2 | 3 | # Build from local repo (volume-mount a clone of https://github.com/mongoose-os/mos.git to /src): 4 | /src master 5 | merge deb-latest https://github.com/mongoose-os/mos.git deb-latest 6 | run rsync -a /src/vendor/ vendor/ 7 | -------------------------------------------------------------------------------- /tools/ubuntu/mos-latest-jammy.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {revtime}+{git-commit}~jammy0 2 | 3 | # Build from local repo (volume-mount a clone of https://github.com/mongoose-os/mos.git to /src): 4 | /src master 5 | merge deb-latest https://github.com/mongoose-os/mos.git deb-latest 6 | run rsync -a /src/vendor/ vendor/ 7 | -------------------------------------------------------------------------------- /tools/ubuntu/mos-latest-kinetic.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {revtime}+{git-commit}~kinetic0 2 | 3 | # Build from local repo (volume-mount a clone of https://github.com/mongoose-os/mos.git to /src): 4 | /src master 5 | merge deb-latest https://github.com/mongoose-os/mos.git deb-latest 6 | run rsync -a /src/vendor/ vendor/ 7 | -------------------------------------------------------------------------------- /tools/ubuntu/mos-latest-xenial.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {revtime}+{git-commit}~xenial0 2 | 3 | # Build from local repo (volume-mount a clone of https://github.com/mongoose-os/mos.git to /src): 4 | /src master 5 | merge deb-latest https://github.com/mongoose-os/mos.git deb-latest 6 | run rsync -a /src/vendor/ vendor/ 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/libs_common/mylib1/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | filesystem: 9 | - fs 10 | 11 | config_schema: 12 | - ["mylib1", "o", {title: "mylib1 settings"}] 13 | 14 | manifest_version: 2017-09-29 15 | -------------------------------------------------------------------------------- /tools/ubuntu/mos-bionic.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {latest-tag}+{git-commit}~bionic0 2 | 3 | # Build from local repo (volume-mount a clone of https://github.com/mongoose-os/mos.git to /src): 4 | /src 1.11_CHANGE_ME 5 | merge deb-release https://github.com/mongoose-os/mos.git deb-release 6 | run rsync -a /src/vendor/ vendor/ 7 | -------------------------------------------------------------------------------- /tools/ubuntu/mos-focal.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {latest-tag}+{git-commit}~focal0 2 | 3 | # Build from local repo (volume-mount a clone of https://github.com/mongoose-os/mos.git to /src): 4 | /src 1.11_CHANGE_ME 5 | merge deb-release https://github.com/mongoose-os/mos.git deb-release 6 | run rsync -a /src/vendor/ vendor/ 7 | -------------------------------------------------------------------------------- /tools/ubuntu/mos-jammy.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {latest-tag}+{git-commit}~jammy0 2 | 3 | # Build from local repo (volume-mount a clone of https://github.com/mongoose-os/mos.git to /src): 4 | /src 1.11_CHANGE_ME 5 | merge deb-release https://github.com/mongoose-os/mos.git deb-release 6 | run rsync -a /src/vendor/ vendor/ 7 | -------------------------------------------------------------------------------- /tools/ubuntu/mos-xenial.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {latest-tag}+{git-commit}~xenial0 2 | 3 | # Build from local repo (volume-mount a clone of https://github.com/mongoose-os/mos.git to /src): 4 | /src 1.11_CHANGE_ME 5 | merge deb-release https://github.com/mongoose-os/mos.git deb-release 6 | run rsync -a /src/vendor/ vendor/ 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_05_lib_override/libs/mylib1/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.0 5 | 6 | libs: 7 | - location: https://github.com/mongoose-os-libs/mylib2 8 | 9 | config_schema: 10 | - ["mylib1", "o", {title: "mylib1 settings"}] 11 | 12 | manifest_version: 2017-09-29 13 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_04_in_lib_manifest_submanifest_cond/libs/mylib3/src/mylib3_src1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2017 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | #include 7 | 8 | bool mgos_ca_bundle_init(void) { 9 | return true; 10 | } 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_01_no_name/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | 6 | # prepareLib() commentary case (1): a library in use has no explicit `name' 7 | # settings. Check that the generated MGOS_HAVE_* and mgos_*_init() identifiers 8 | # are proper. 9 | -------------------------------------------------------------------------------- /tools/ubuntu/mos-kinetic.recipe: -------------------------------------------------------------------------------- 1 | # git-build-recipe format 0.4 deb-version {latest-tag}+{git-commit}~kinetic0 2 | 3 | # Build from local repo (volume-mount a clone of https://github.com/mongoose-os/mos.git to /src): 4 | /src 1.11_CHANGE_ME 5 | merge deb-release https://github.com/mongoose-os/mos.git deb-release 6 | run rsync -a /src/vendor/ vendor/ 7 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib1/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | filesystem: 9 | - fs 10 | 11 | config_schema: 12 | - ["mylib1", "o", {title: "mylib1 settings"}] 13 | 14 | manifest_version: 2017-09-29 15 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/mylib1_common/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | filesystem: 9 | - fs 10 | 11 | config_schema: 12 | - ["mylib1", "o", {title: "mylib1 settings"}] 13 | 14 | manifest_version: 2017-09-29 15 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib4/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib4 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib4", "o", {title: "mylib4 settings"}] 15 | 16 | manifest_version: 2017-09-29 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib1/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | filesystem: 9 | - fs 10 | 11 | config_schema: 12 | - ["mylib1", "o", {title: "mylib1 settings"}] 13 | 14 | manifest_version: 2017-09-29 15 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib1/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | filesystem: 9 | - fs 10 | 11 | config_schema: 12 | - ["mylib1", "o", {title: "mylib1 settings"}] 13 | 14 | manifest_version: 2017-09-29 15 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib3", "o", {title: "mylib3 settings"}] 15 | 16 | manifest_version: 2017-09-29 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib4/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib4 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib4", "o", {title: "mylib4 settings"}] 15 | 16 | manifest_version: 2017-09-29 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib2 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib2", "o", {title: "mylib2 settings"}] 15 | 16 | manifest_version: 2017-09-29 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib4/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib4 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib4", "o", {title: "mylib4 settings"}] 15 | 16 | manifest_version: 2017-09-29 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_02_in_lib_submanifest/libs/mylib3/mos_esp32.yml: -------------------------------------------------------------------------------- 1 | build_vars: 2 | ESP_IDF_EXTRA_COMPONENTS: "${build_vars.ESP_IDF_EXTRA_COMPONENTS} from_mylib3" 3 | ESP_IDF_SDKCONFIG_OPTS: > 4 | ${build_vars.ESP_IDF_SDKCONFIG_OPTS} 5 | SOMETHING_FROM_MYLIB3=y 6 | SOMETHING_ELSE_FROM_MYLIB3=y 7 | 8 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/mylib2_common/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib2 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib2", "o", {title: "mylib2 settings"}] 15 | 16 | manifest_version: 2017-09-29 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib2 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib2", "o", {title: "mylib2 settings"}] 15 | 16 | manifest_version: 2017-09-29 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_03_extend_with_cli/test_desc.yml: -------------------------------------------------------------------------------- 1 | build_vars: 2 | # Override LIB4_VAR2 which *is* defined by the app as well 3 | LIB4_VAR2: lib4_var2_from_cli 4 | # This one is not defined anywhere. 5 | NEW_VAR_FROM_CLI: new_from_cli 6 | # This one has default value but is overridden. 7 | OVERRIDE_FROM_CLI: overridden_from_cli 8 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib2 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib2", "o", {title: "mylib2 settings"}] 15 | 16 | manifest_version: 2017-09-29 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/libs_common/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib2 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | 9 | conds: 10 | - when: mos.platform == "esp8266" 11 | apply: 12 | libs: 13 | - location: https://github.com/mongoose-os-libs/mylib1 14 | 15 | manifest_version: 2017-09-29 16 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_04_lib_name_same/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | 6 | # prepareLib() commentary case (4): a library in use has `name' set in its 7 | # manifest that corresponds to its location basename. Check that the generated 8 | # MGOS_HAVE_* and mgos_*_init() identifiers are unaffected. 9 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib2 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib2", "o", {title: "mylib2 settings"}] 15 | 16 | init_after: 17 | - mylib4 18 | 19 | manifest_version: 2017-09-29 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib4/mos_esp32.yml: -------------------------------------------------------------------------------- 1 | conds: 2 | - when: build_vars.MYLIB4_SWITCH_FOO == "1" 3 | apply: 4 | config_schema: 5 | - ["mylib4.foo", 32] 6 | - when: build_vars.MYLIB4_SWITCH_FOO == "0" 7 | apply: 8 | config_schema: 9 | - ["mylib4.bar", 32] 10 | 11 | manifest_version: 2017-06-16 12 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/mylib4_common/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib4 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib4", "o", {title: "mylib4 settings"}] 15 | 16 | build_vars: 17 | 18 | manifest_version: 2017-09-29 19 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/libs/mylib1/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - +src 8 | - -src/mylib1_srcfoo* 9 | filesystem: 10 | - +fs 11 | - -fs/mylib1_file_a* 12 | 13 | config_schema: 14 | - ["mylib1", "o", {title: "mylib1 settings"}] 15 | 16 | manifest_version: 2017-09-29 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib2 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib2", "o", {title: "mylib2 settings"}] 15 | 16 | init_after: 17 | - mylib4 18 | 19 | manifest_version: 2017-09-29 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/libs/mylib1/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - +src 8 | - -src/mylib1_srcfoo* 9 | filesystem: 10 | - +fs 11 | - -fs/mylib1_file_a* 12 | 13 | config_schema: 14 | - ["mylib1", "o", {title: "mylib1 settings"}] 15 | 16 | manifest_version: 2017-09-29 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_04_error_lib_cond/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | modules: 8 | - name: mongoose-os 9 | location: https://github.com/cesanta/mongoose-os 10 | version: "0.01" 11 | manifest_version: "2021-03-26" 12 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_04_in_lib_manifest_submanifest_cond/libs/mylib3/mos_esp32.yml: -------------------------------------------------------------------------------- 1 | build_vars: 2 | ESP_IDF_EXTRA_COMPONENTS: "${build_vars.ESP_IDF_EXTRA_COMPONENTS} from_mylib3_submanifest" 3 | ESP_IDF_SDKCONFIG_OPTS: > 4 | ${build_vars.ESP_IDF_SDKCONFIG_OPTS} 5 | SOMETHING_FROM_MYLIB3_SUBMANIFEST=y 6 | SOMETHING_ELSE_FROM_MYLIB3_SUBMANIFEST=y 7 | 8 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_06_lib_ref_name_mismatch/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | name: lib1 6 | 7 | # prepareLib() commentary case (6): a library in use has `name' set in its 8 | # manifest distinct from `name' set in the referring manifest. Check that this 9 | # mismatch is properly detected and reported. 10 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_07_lib_name_no_ref_name/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | 6 | # prepareLib() commentary case (7): a library in use has `name' set in its 7 | # manifest distinct from its location basename. Check that the lack of the same 8 | # name also set in the referring manifest is properly detected and reported. 9 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_08_lib_ref_name_mismatch/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | name: mylib1 6 | 7 | # prepareLib() commentary case (8): a library in use has `name' set in its 8 | # manifest distinct from `name' set in the referring manifest. Check that this 9 | # mismatch is properly detected and reported. 10 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_03_ref_name/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | name: lib1 6 | 7 | # prepareLib() commentary case (3): a library in use has `name' set in referring 8 | # manifest that is distinct from its location basename. Check that the 9 | # generated MGOS_HAVE_* and mgos_*_init() identifiers are properly altered. 10 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib3", "o", {title: "mylib3 settings"}] 15 | 16 | libs: 17 | - location: https://github.com/mongoose-os-libs/mylib4 18 | 19 | manifest_version: 2017-09-29 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/libs_common/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | conds: 7 | - when: mos.platform == "esp8266" 8 | apply: 9 | libs: 10 | - location: https://github.com/mongoose-os-libs/mylib2 11 | 12 | config_schema: 13 | - ["mylib3", "o", {title: "mylib3 settings"}] 14 | 15 | manifest_version: 2017-09-29 16 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_02_ref_name_same/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | name: mylib1 6 | 7 | # prepareLib() commentary case (2): a library in use has `name' set in referring 8 | # manifest that corresponds to the basename of its location. Check that the 9 | # generated MGOS_HAVE_* and mgos_*_init() identifiers are unaffected. 10 | -------------------------------------------------------------------------------- /tools/ansible/fwbuild/defaults/main.yml: -------------------------------------------------------------------------------- 1 | # Tag for "fwbuild-instance" and "cloud-mos" images 2 | # 3 | # When deploying a release, it's convenient to override this variable in 4 | # command line as follows: "-e mos_version_tag=1.5" 5 | mos_version_tag: latest 6 | 7 | # Tag for fwbuild-manager, normally it should always be "latest" 8 | fwbuild_manager_tag: latest 9 | 10 | fwbuild_volumes_dir: /data/fwbuild-volumes 11 | 12 | build: no 13 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/libs/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib3", "o", {title: "mylib3 settings"}] 15 | 16 | libs: 17 | - location: https://github.com/mongoose-os-libs/mylib4 18 | 19 | manifest_version: 2017-09-29 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | - -src/app_src2.c 8 | 9 | filesystem: 10 | - fs 11 | 12 | libs: 13 | - location: https://github.com/mongoose-os-libs/mylib1 14 | 15 | config_schema: 16 | - ["myapp", "o", {title: "Myapp settings"}] 17 | 18 | manifest_version: 2017-09-29 19 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_01_no_name/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | - name: mylib1 7 | location: libs/mylib1 8 | version: "0.01" 9 | modules: 10 | - name: mongoose-os 11 | location: https://github.com/cesanta/mongoose-os 12 | version: "0.01" 13 | manifest_version: "2021-03-26" 14 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_03_ref_name/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | - name: lib1 7 | location: libs/mylib1 8 | version: "0.01" 9 | modules: 10 | - name: mongoose-os 11 | location: https://github.com/cesanta/mongoose-os 12 | version: "0.01" 13 | manifest_version: "2021-03-26" 14 | -------------------------------------------------------------------------------- /tools/docker/mos/Makefile: -------------------------------------------------------------------------------- 1 | .DEFAULT_GOAL := docker-build 2 | .PHONY: docker-build docker-tag docker-push 3 | 4 | TAG ?= latest 5 | FROM_TAG ?= latest 6 | 7 | docker-build: 8 | ifndef NOBUILD 9 | make -C ../../.. docker-build-mos 10 | endif 11 | docker build -t docker.io/mgos/mos:$(TAG) . 12 | 13 | docker-tag: 14 | docker tag docker.io/mgos/mos:$(FROM_TAG) docker.io/mgos/mos:$(TAG) 15 | 16 | docker-push: 17 | docker push docker.io/mgos/mos:$(TAG) 18 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib4/mos_esp8266.yml: -------------------------------------------------------------------------------- 1 | build_vars: 2 | MYLIB4_SWITCH_FOO: 1 3 | 4 | conds: 5 | - when: build_vars.MYLIB4_SWITCH_FOO == "1" 6 | apply: 7 | config_schema: 8 | - ["mylib4.foo", 8266] 9 | - when: build_vars.MYLIB4_SWITCH_FOO == "0" 10 | apply: 11 | config_schema: 12 | - ["mylib4.bar", 8266] 13 | 14 | manifest_version: 2017-06-16 15 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_09_lib_ref_name_match/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | name: lib1 6 | 7 | # prepareLib() commentary case (9): a library in use has same `name' set in its 8 | # and referring manifests that is distinct from its location basename. Check 9 | # that the generated MGOS_HAVE_* and mgos_*_init() identifiers are properly 10 | # altered. 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib3", "o", {title: "mylib3 settings"}] 15 | 16 | libs: 17 | - location: https://github.com/mongoose-os-libs/mylib4 18 | 19 | manifest_version: 2017-09-29 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_05_lib_ref_name_same/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | name: mylib1 6 | 7 | # prepareLib() commentary case (5): a library in use has `name' set in both its 8 | # manifest and the referring manifest that corresponds to its location basename. 9 | # Check that the generated MGOS_HAVE_* and mgos_*_init() identifiers are 10 | # unaffected. 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib2 3 | type: lib 4 | version: 1.0 5 | 6 | platforms: 7 | - esp32 8 | - cc3200 9 | - non_existing_platform 10 | 11 | sources: 12 | - src 13 | includes: 14 | - include 15 | filesystem: 16 | - fs 17 | 18 | config_schema: 19 | - ["mylib2", "o", {title: "mylib2 settings"}] 20 | 21 | manifest_version: 2017-09-29 22 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_07_unreadable_overridden/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | name: lib1 6 | - location: libs/mylib2 7 | 8 | # Two lib1 libraries are referenced, one (named via the referencing manifest) 9 | # directly, the other (named by default) indirectly via mylib2; its source is 10 | # also unreadable (non-existent). Check that manifest generation is successful. 11 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/libs/mylib2/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib2 3 | type: lib 4 | 5 | sources: 6 | - src 7 | includes: 8 | - include 9 | filesystem: 10 | - fs 11 | 12 | config_schema: 13 | - ["mylib2", "o", {title: "mylib2 settings"}] 14 | 15 | init_after: 16 | - dummy1 # Ignored 17 | - mylib4* # Globs are expanded 18 | 19 | init_before: 20 | - dummy2 21 | - mylib1* 22 | 23 | manifest_version: 2017-09-29 24 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_02_in_lib_submanifest/libs/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib3", "o", {title: "mylib3 settings"}] 15 | 16 | libs: 17 | - location: https://github.com/mongoose-os-libs/mylib4 18 | 19 | manifest_version: 2017-09-29 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/libs/mylib4/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib4 3 | type: lib 4 | version: 1.0 5 | 6 | platforms: 7 | - esp32 8 | - cc3200 9 | - non_existing_platform 10 | - esp8266 11 | 12 | sources: 13 | - src 14 | includes: 15 | - include 16 | filesystem: 17 | - fs 18 | 19 | config_schema: 20 | - ["mylib4", "o", {title: "mylib4 settings"}] 21 | 22 | manifest_version: 2017-09-29 23 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib3", "o", {title: "mylib3 settings"}] 15 | 16 | libs: 17 | - location: https://github.com/mongoose-os-libs/mylib4 18 | 19 | build_vars: 20 | 21 | manifest_version: 2017-09-29 22 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib3", "o", {title: "mylib3 settings"}] 15 | 16 | libs: 17 | - location: https://github.com/mongoose-os-libs/mylib4 18 | 19 | build_vars: 20 | 21 | manifest_version: 2017-09-29 22 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_03_cond_excluded_files/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | conds: 9 | - when: defined(build_vars.FOO) 10 | apply: 11 | conds: 12 | - when: build_vars.FOO == "bar" 13 | apply: 14 | sources: 15 | - -src/app_src2.c 16 | 17 | no_implicit_init_deps: true 18 | 19 | manifest_version: 2018-06-20 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_02_cond_nonexcluded_files/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | conds: 9 | - when: defined(build_vars.FOO) 10 | apply: 11 | conds: 12 | - when: build_vars.FOO == "bar" 13 | apply: 14 | sources: 15 | - -src/app_src2.c 16 | 17 | no_implicit_init_deps: true 18 | 19 | manifest_version: 2018-06-20 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_05_lib_override/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: libs/mylib1 13 | # mylib1 also depends on mylib2 but this entry should override the dependency. 14 | - name: mylib2 15 | location: libs/mylib2a 16 | 17 | config_schema: 18 | - ["myapp", "o", {title: "Myapp settings"}] 19 | 20 | manifest_version: 2017-09-29 21 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_01_app_cond_adds_lib/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | conds: 6 | - when: mos.platform == "no_match" 7 | apply: 8 | libs: 9 | - location: https://github.com/mongoose-os-libs/mylib2 10 | - when: mos.platform == "esp8266" 11 | apply: 12 | libs: 13 | - location: https://github.com/mongoose-os-libs/mylib1 14 | 15 | manifest_version: 2018-08-29 16 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | manifest_version: 2017-09-29 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | manifest_version: 2017-09-29 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | manifest_version: 2017-09-29 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | fs_filters: 12 | - include: "*_b1" 13 | - exclude: "mylib1_*" 14 | - exclude: "*.js" 15 | 16 | libs: 17 | - location: https://github.com/mongoose-os-libs/mylib1 18 | 19 | config_schema: 20 | - ["myapp", "o", {title: "Myapp settings"}] 21 | 22 | manifest_version: 2017-09-29 23 | -------------------------------------------------------------------------------- /fwbuild/manager/web_root/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Mongoose Firmware Builder 9 | 10 | 11 | 12 | Mongoose firmware builder, exposes API to be used by the mos tool. 13 | 14 | 15 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/libs_common/mylib1/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib1 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | filesystem: 9 | - fs 10 | 11 | config_schema: 12 | - ["mylib1", "o", {title: "mylib1 settings"}] 13 | 14 | conds: 15 | - when: '"1" == "1"' 16 | apply: 17 | # Name can only be overriden in app's conds 18 | name: Does not 19 | version: 2.0 20 | 21 | manifest_version: 2017-09-29 22 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_02_diff_loc_dflt_names/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | version: 2.0-from-app 6 | - location: libs/mylib2 7 | 8 | # Two mylib1 libraries are referenced, one directly, the other indirectly via 9 | # mylib2, with no explicitly set names. Check that the generated manifest file 10 | # has no duplicates and that the actually handled reference is that from the 11 | # higher level of the manifest tree. 12 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_07_unreadable_overridden/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | - name: lib1 7 | location: libs/mylib1 8 | version: "0.01" 9 | - name: mylib2 10 | location: libs/mylib2 11 | version: "0.01" 12 | modules: 13 | - name: mongoose-os 14 | location: https://github.com/cesanta/mongoose-os 15 | version: "0.01" 16 | manifest_version: "2021-03-26" 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_01_same_loc_dflt_names/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | version: 2.0-from-app 6 | - location: libs/mylib2 7 | 8 | # The mylib1 library is referenced both directly and indirectly via mylib2 using 9 | # the same location and no explicitly set names. Check that the generated 10 | # manifest file has no duplicates and that the actually handled reference is 11 | # that from the higher level of the manifest tree. 12 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_04_diff_loc_lower_mft_name/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/lib1 5 | version: 2.0-from-app 6 | - location: libs/mylib2 7 | 8 | # Two lib1 libraries are referenced, one (named by default) directly, the other 9 | # (named via its manifest) indirectly via mylib2. Check that the generated 10 | # manifest file has no duplicates and that the actually handled reference is 11 | # that from the higher level of the manifest tree. 12 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | manifest_version: 2017-09-29 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_04_fs_filters/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | modules: 12 | - name: mongoose-os 13 | location: https://github.com/cesanta/mongoose-os 14 | version: "0.01" 15 | manifest_version: "2021-03-26" 16 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_01_same_loc_dflt_names/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | - name: mylib1 7 | location: libs/mylib1 8 | version: 2.0-from-app 9 | - name: mylib2 10 | location: libs/mylib2 11 | version: "0.01" 12 | modules: 13 | - name: mongoose-os 14 | location: https://github.com/cesanta/mongoose-os 15 | version: "0.01" 16 | manifest_version: "2021-03-26" 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_03_diff_loc_higher_mft_name/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | - name: lib1 7 | location: libs/mylib1 8 | version: 2.0-from-app 9 | - name: mylib2 10 | location: libs/mylib2 11 | version: "0.01" 12 | modules: 13 | - name: mongoose-os 14 | location: https://github.com/cesanta/mongoose-os 15 | version: "0.01" 16 | manifest_version: "2021-03-26" 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_04_diff_loc_lower_mft_name/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | - name: lib1 7 | location: libs/lib1 8 | version: 2.0-from-app 9 | - name: mylib2 10 | location: libs/mylib2 11 | version: "0.01" 12 | modules: 13 | - name: mongoose-os 14 | location: https://github.com/cesanta/mongoose-os 15 | version: "0.01" 16 | manifest_version: "2021-03-26" 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_01_excluded_files/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | modules: 12 | - name: mongoose-os 13 | location: https://github.com/cesanta/mongoose-os 14 | version: "0.01" 15 | manifest_version: "2021-03-26" 16 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_01_app_cond_adds_lib/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | modules: 12 | - name: mongoose-os 13 | location: https://github.com/cesanta/mongoose-os 14 | version: "0.01" 15 | manifest_version: "2021-03-26" 16 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_06_diff_loc_lower_ref_name/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/lib1 5 | version: 2.0-from-app 6 | - location: libs/mylib2 7 | 8 | # Two lib1 libraries are referenced, one (named by default) directly, the other 9 | # (named via the referencing manifest) indirectly via mylib2. Check that the 10 | # generated manifest file has no duplicates and that the actually handled 11 | # reference is that from the higher level of the manifest tree. 12 | -------------------------------------------------------------------------------- /tools/docker/fwbuild-manager/Makefile: -------------------------------------------------------------------------------- 1 | .DEFAULT_GOAL := docker-build 2 | .PHONY: docker-build docker-tag docker-push 3 | 4 | TAG ?= latest 5 | FROM_TAG ?= latest 6 | 7 | docker-build: 8 | ifndef NOBUILD 9 | make -C ../../.. docker-build-fwbuild-manager 10 | else 11 | @true 12 | endif 13 | docker build -t docker.io/mgos/fwbuild-manager:$(TAG) . 14 | 15 | docker-tag: 16 | docker tag docker.io/mgos/fwbuild-manager:$(FROM_TAG) docker.io/mgos/fwbuild-manager:$(TAG) 17 | 18 | docker-push: 19 | docker push docker.io/mgos/fwbuild-manager:$(TAG) 20 | -------------------------------------------------------------------------------- /tools/docker/fwbuild-instance/Makefile: -------------------------------------------------------------------------------- 1 | .DEFAULT_GOAL := docker-build 2 | .PHONY: docker-build docker-tag docker-push 3 | 4 | TAG ?= latest 5 | FROM_TAG ?= latest 6 | 7 | docker-build: 8 | ifndef NOBUILD 9 | make -C ../../.. docker-build-fwbuild-instance 10 | else 11 | @true 12 | endif 13 | docker build -t docker.io/mgos/fwbuild-instance:$(TAG) . 14 | 15 | docker-tag: 16 | docker tag docker.io/mgos/fwbuild-instance:$(FROM_TAG) docker.io/mgos/fwbuild-instance:$(TAG) 17 | 18 | docker-push: 19 | docker push docker.io/mgos/fwbuild-instance:$(TAG) 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_01_app_doesnt_override/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | manifest_version: 2017-09-29 20 | -------------------------------------------------------------------------------- /common/mgrpc/transport_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=transport transport.go"; DO NOT EDIT 2 | 3 | package mgrpc 4 | 5 | import "fmt" 6 | 7 | const _transport_name = "tHTTP_POSTtWebSockettPlainTCPtSerialtMQTTtAzureDMtGCPtWatsontUDP" 8 | 9 | var _transport_index = [...]uint8{0, 10, 20, 29, 36, 41, 49, 53, 60, 64} 10 | 11 | func (i transport) String() string { 12 | if i < 0 || i >= transport(len(_transport_index)-1) { 13 | return fmt.Sprintf("transport(%d)", i) 14 | } 15 | return _transport_name[_transport_index[i]:_transport_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_05_diff_loc_higher_ref_name/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | name: lib1 6 | version: 2.0-from-app 7 | - location: libs/mylib2 8 | 9 | # Two lib1 libraries are referenced, one (named via the referencing manifest) 10 | # directly, the other (named by default) indirectly via mylib2. Check that the 11 | # generated manifest file has no duplicates and that the actually handled 12 | # reference is that from the higher level of the manifest tree. 13 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib3", "o", {title: "mylib3 settings"}] 15 | 16 | libs: 17 | - location: https://github.com/mongoose-os-libs/mylib4 18 | 19 | build_vars: 20 | LIB4_VAR1: ${build_vars.LIB4_VAR1} lib3_var1 21 | LIB4_VAR2: ${build_vars.LIB4_VAR2} lib3_var2 22 | 23 | manifest_version: 2017-09-29 24 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_11_lib_overrides/test_03_diff_loc_higher_mft_name/app/mos.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2020-08-02 2 | 3 | libs: 4 | - location: libs/mylib1 5 | name: lib1 6 | version: 2.0-from-app 7 | - location: libs/mylib2 8 | 9 | # Two lib1 libraries are referenced, one (named via both its and referring 10 | # manifests) directly, the other (named by default) indirectly via mylib2. 11 | # Check that the generated manifest file has no duplicates and that the actually 12 | # handled reference is that from the higher level of the manifest tree. 13 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_03_error_app_cond/expected/esp8266/mos_final.yml: -------------------------------------------------------------------------------- 1 | name: app 2 | type: app 3 | platform: esp8266 4 | platforms: 5 | __ALL_PLATFORMS__ 6 | sources: 7 | - __APP_ROOT__/app/build/gen/mgos_deps_init.c 8 | modules: 9 | - name: mongoose-os 10 | location: https://github.com/cesanta/mongoose-os 11 | version: "0.01" 12 | no_implicit_init_deps: true 13 | build_vars: 14 | BOARD: "" 15 | MGOS: "1" 16 | cdefs: 17 | MGOS: "1" 18 | libs_version: "0.01" 19 | modules_version: "0.01" 20 | mongoose_os_version: "0.01" 21 | manifest_version: "2019-04-26" 22 | -------------------------------------------------------------------------------- /fwbuild/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | services: 3 | fwbuild-manager: 4 | image: docker.io/mgos/fwbuild-manager 5 | volumes: 6 | - /var/tmp/fwbuild-volumes:/var/tmp/fwbuild-volumes 7 | - /var/run/docker.sock:/var/run/docker.sock 8 | - /tmp/acme-challenge:/acme-challenge 9 | ports: 10 | - "8000:8000" 11 | command: >- 12 | --logtostderr --v=2 13 | --volumes-dir=/var/tmp/fwbuild-volumes 14 | --port=8000 15 | --acme-challenge-dir=/acme-challenge 16 | --image-pull-interval=0 # For using custom images during local development 17 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_03_lib_and_app_conds_add_same_lib/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | # lib2 cond will add lib1, make sure they are deduped. 6 | 7 | libs: 8 | - location: https://github.com/mongoose-os-libs/mylib2 9 | 10 | conds: 11 | - when: mos.platform == "esp8266" 12 | apply: 13 | libs: 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | # However, app is allowed to override the variant. 16 | variant: foo 17 | 18 | manifest_version: 2018-08-29 19 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_02_app_overrides_to_1/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | build_vars: 20 | MYLIB4_SWITCH_FOO: 1 21 | 22 | manifest_version: 2017-09-29 23 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_03_app_overrides_to_0/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | build_vars: 20 | MYLIB4_SWITCH_FOO: 0 21 | 22 | manifest_version: 2017-09-29 23 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_02_app_overrides_to_1/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | build_vars: 20 | MYLIB4_SWITCH_FOO: 1 21 | 22 | manifest_version: 2017-09-29 23 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_03_app_overrides_to_0/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | build_vars: 20 | MYLIB4_SWITCH_FOO: 0 21 | 22 | manifest_version: 2017-09-29 23 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_04_app_overrides_to_1_cli_overrides_to_0/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | build_vars: 20 | MYLIB4_SWITCH_FOO: 1 21 | 22 | manifest_version: 2017-09-29 23 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_05_app_overrides_to_0_cli_overrides_to_1/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | build_vars: 20 | MYLIB4_SWITCH_FOO: 1 21 | 22 | manifest_version: 2017-09-29 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014-2019 Cesanta Software Limited 2 | All rights reserved 3 | 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 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_01_override/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | build_vars: 20 | LIB4_VAR2: ${build_vars.LIB4_VAR2} app 21 | LIB4_VAR3: ${build_vars.LIB4_VAR3} app 22 | 23 | manifest_version: 2017-09-29 24 | -------------------------------------------------------------------------------- /tools/docker/golang/Dockerfile.golang-mingw: -------------------------------------------------------------------------------- 1 | FROM docker.io/mgos/ubuntu-golang:focal 2 | 3 | RUN apt-get install -y --no-install-recommends \ 4 | mingw-w64 p7zip && \ 5 | apt-get clean 6 | 7 | # Add precompiled Windows libusb. 8 | # 1.0.23 is chosen to match libusb version shipped with ubuntu:bionic, which is where the headers come from. 9 | RUN mkdir /opt/libusb-win && cd /opt/libusb-win && \ 10 | wget -q https://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.23/libusb-1.0.23.7z && \ 11 | p7zip -d libusb-*.7z && \ 12 | cp MinGW32/static/libusb-1.0.a /usr/i686-w64-mingw32/lib && \ 13 | rm -rf /opt/libusb-win 14 | -------------------------------------------------------------------------------- /.github/workflows/go.yml: -------------------------------------------------------------------------------- 1 | name: Go 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | pull_request: 7 | branches: [ master ] 8 | workflow_dispatch: 9 | 10 | jobs: 11 | 12 | build: 13 | name: Build 14 | runs-on: macos-latest 15 | steps: 16 | 17 | - name: Set up Go 1.x 18 | uses: actions/setup-go@v2 19 | with: 20 | go-version: ^1.13 21 | 22 | - name: Check out code into the Go module directory 23 | uses: actions/checkout@v2 24 | 25 | - name: Install dependencies 26 | run: make deps-mac 27 | 28 | - name: Build 29 | run: make 30 | 31 | - name: Test 32 | run: make test 33 | -------------------------------------------------------------------------------- /tools/ansible/fwbuild/README.md: -------------------------------------------------------------------------------- 1 | # FWBuild role 2 | 3 | ## Deploying latest: 4 | 5 | ``` 6 | ansible-playbook -i hosts.yml fwbuild.yml -e build=yes 7 | ``` 8 | 9 | In this case, `fwbuild-instance` and `cloud-mos` will be deployed with the tag `latest`. 10 | 11 | ## Deploying release (in the example below, 1.5) 12 | 13 | ``` 14 | ansible-playbook -i hosts.yml fwbuild.yml -e build=yes -e mos_version_tag=1.5 15 | ``` 16 | 17 | In this case, `fwbuild-instance` and `cloud-mos` will be deployed with three tags: `1.5`, `release` and `latest`. 18 | 19 | Note that setting `mos_version_tag` doesn't affect the version of `fwbuild-manager`, which is always `latest`. 20 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_05_lib_override/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | repo_version: deadbeef 8 | - name: mylib1 9 | location: libs/mylib1 10 | version: "0.01" 11 | user_version: "1.0" 12 | - name: mylib2 13 | location: libs/mylib2a 14 | version: "0.01" 15 | user_version: "2.0" 16 | modules: 17 | - name: mongoose-os 18 | location: https://github.com/cesanta/mongoose-os 19 | version: "0.01" 20 | repo_version: 2a2b2c 21 | repo_dirty: true 22 | manifest_version: "2021-03-26" 23 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_02_lib_cond_adds_lib/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | modules: 16 | - name: mongoose-os 17 | location: https://github.com/cesanta/mongoose-os 18 | version: "0.01" 19 | manifest_version: "2021-03-26" 20 | -------------------------------------------------------------------------------- /cli/web_root/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Mongoose OS Tool 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_03_lib_and_app_conds_add_same_lib/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | modules: 16 | - name: mongoose-os 17 | location: https://github.com/cesanta/mongoose-os 18 | version: "0.01" 19 | manifest_version: "2021-03-26" 20 | -------------------------------------------------------------------------------- /cli/LICENSE: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2018 Cesanta Software Limited 3 | * All rights reserved 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the ""License""); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an ""AS IS"" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | -------------------------------------------------------------------------------- /cli/mdash/mdash.go: -------------------------------------------------------------------------------- 1 | package mdash 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | 7 | flag "github.com/spf13/pflag" 8 | 9 | "github.com/mongoose-os/mos/cli/config" 10 | "github.com/mongoose-os/mos/cli/dev" 11 | ) 12 | 13 | func MdashSetup(ctx context.Context, devConn dev.DevConn) error { 14 | args := flag.Args() 15 | if len(args) < 2 { 16 | return fmt.Errorf("Usage: mos mdash-setup DEVICE_TOKEN") 17 | } 18 | devConf, err := dev.GetConfig(ctx, devConn) 19 | if err != nil { 20 | return fmt.Errorf("failed to connect to get device config: %v", err) 21 | } 22 | devConf.Set("dash.enable", "true") 23 | devConf.Set("dash.token", args[1]) 24 | 25 | return config.SetAndSave(ctx, devConn, devConf) 26 | } 27 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_01_in_lib_manifest/libs/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib3", "o", {title: "mylib3 settings"}] 15 | 16 | libs: 17 | - location: https://github.com/mongoose-os-libs/mylib4 18 | 19 | build_vars: 20 | ESP_IDF_EXTRA_COMPONENTS: "${build_vars.ESP_IDF_EXTRA_COMPONENTS} from_mylib3" 21 | ESP_IDF_SDKCONFIG_OPTS: > 22 | ${build_vars.ESP_IDF_SDKCONFIG_OPTS} 23 | SOMETHING_FROM_MYLIB3=y 24 | SOMETHING_ELSE_FROM_MYLIB3=y 25 | 26 | manifest_version: 2017-09-29 27 | -------------------------------------------------------------------------------- /tools/ubuntu/upload-deb.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | PACKAGE=$1 4 | DISTR=$2 5 | 6 | [ -z "${PACKAGE}" -o -z "${DISTR}" ] && { echo "Usage: $0 package distr"; exit 1; } 7 | 8 | [ -z "${GNUPGHOME}" ] && GNUPGHOME=$HOME/.gnupg-cesantabot 9 | [ -d "${GNUPGHOME}" ] || { echo "${GNUPGHOME} does not exist"; exit 1; } 10 | 11 | OUTDIR="$HOME/tmp/out-${DISTR}" 12 | 13 | set -x -e 14 | 15 | # Note: always using Xenial because Zesty has problem with passphrase entry. 16 | docker run -it --rm \ 17 | -v ${GNUPGHOME}:/home/.gnupg \ 18 | -v ${OUTDIR}:/work \ 19 | docker.io/mgos/ubuntu-golang:xenial \ 20 | /bin/bash -l -c "\ 21 | cd /work && \ 22 | debsign *_source.changes && \ 23 | dput ppa:mongoose-os/mos *_source.changes" 24 | -------------------------------------------------------------------------------- /cli/manifest_parser/data/root_manifest.yml: -------------------------------------------------------------------------------- 1 | manifest_version: 2018-06-20 2 | 3 | build_vars: 4 | BOARD: "" 5 | 6 | conds: 7 | - when: mos.platform == "esp32" 8 | apply: 9 | build_vars: 10 | ESP_IDF_EXTRA_COMPONENTS: "" 11 | ESP_IDF_SDKCONFIG_OPTS: "" 12 | - when: mos.platform == "esp32c3" 13 | apply: 14 | build_vars: 15 | ESP_IDF_EXTRA_COMPONENTS: "" 16 | ESP_IDF_SDKCONFIG_OPTS: "" 17 | - when: mos.platform == "esp32s2" 18 | apply: 19 | build_vars: 20 | ESP_IDF_EXTRA_COMPONENTS: "" 21 | ESP_IDF_SDKCONFIG_OPTS: "" 22 | - when: mos.platform == "esp32s3" 23 | apply: 24 | build_vars: 25 | ESP_IDF_EXTRA_COMPONENTS: "" 26 | ESP_IDF_SDKCONFIG_OPTS: "" 27 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_01_app_doesnt_override/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | conds: 20 | - when: '"1" == "1"' 21 | # Overriding works from here. 22 | apply: 23 | name: Test_app 24 | description: Test app is best app 25 | version: 1.2.3 26 | 27 | manifest_version: 2017-09-29 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_03_in_lib_cond/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | build_vars: 20 | ESP_IDF_EXTRA_COMPONENTS: ${build_vars.ESP_IDF_EXTRA_COMPONENTS} from_app 21 | ESP_IDF_SDKCONFIG_OPTS: > 22 | ${build_vars.ESP_IDF_SDKCONFIG_OPTS} 23 | SOMETHING_FROM_APP=y 24 | 25 | manifest_version: 2017-09-29 26 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_01_nolibs/expected/esp8266/mos_final.yml: -------------------------------------------------------------------------------- 1 | name: test-app 2 | type: app 3 | version: "1.0" 4 | platform: esp8266 5 | platforms: 6 | __ALL_PLATFORMS__ 7 | author: mongoose-os 8 | description: My nolibs app 9 | sources: 10 | - __APP_ROOT__/app/src/bar.c 11 | - __APP_ROOT__/app/src/foo.c 12 | - __APP_ROOT__/app/build/gen/mgos_deps_init.c 13 | filesystem: 14 | - __APP_ROOT__/app/fs/myfile 15 | modules: 16 | - name: mongoose-os 17 | location: https://github.com/cesanta/mongoose-os 18 | version: 1.2.3 19 | no_implicit_init_deps: true 20 | build_vars: 21 | BOARD: "" 22 | MGOS: "1" 23 | cdefs: 24 | MGOS: "1" 25 | libs_version: "0.01" 26 | modules_version: "0.01" 27 | mongoose_os_version: 1.2.3 28 | manifest_version: "2018-06-20" 29 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_01_in_lib_manifest/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | build_vars: 20 | ESP_IDF_EXTRA_COMPONENTS: ${build_vars.ESP_IDF_EXTRA_COMPONENTS} from_app 21 | ESP_IDF_SDKCONFIG_OPTS: > 22 | ${build_vars.ESP_IDF_SDKCONFIG_OPTS} 23 | SOMETHING_FROM_APP=y 24 | 25 | manifest_version: 2017-09-29 26 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_02_in_lib_submanifest/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | build_vars: 20 | ESP_IDF_EXTRA_COMPONENTS: ${build_vars.ESP_IDF_EXTRA_COMPONENTS} from_app 21 | ESP_IDF_SDKCONFIG_OPTS: > 22 | ${build_vars.ESP_IDF_SDKCONFIG_OPTS} 23 | SOMETHING_FROM_APP=y 24 | 25 | manifest_version: 2017-09-29 26 | -------------------------------------------------------------------------------- /cli/os_linux.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014-2019 Cesanta Software Limited 3 | // All rights reserved 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | package main 18 | 19 | func osSpecificInit() { 20 | } 21 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_02_weak_dep_unused/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | modules: 20 | - name: mongoose-os 21 | location: https://github.com/cesanta/mongoose-os 22 | version: "0.01" 23 | manifest_version: "2021-03-26" 24 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_03_cond_excluded_files/expected/esp8266/mos_final.yml: -------------------------------------------------------------------------------- 1 | name: app 2 | type: app 3 | version: "1.0" 4 | platform: esp8266 5 | platforms: 6 | __ALL_PLATFORMS__ 7 | author: mongoose-os 8 | description: My test app 9 | sources: 10 | - __APP_ROOT__/app/src/app_src1.c 11 | - __APP_ROOT__/app/src/app_src3.c 12 | - __APP_ROOT__/app/build/gen/mgos_deps_init.c 13 | modules: 14 | - name: mongoose-os 15 | location: https://github.com/cesanta/mongoose-os 16 | version: "0.01" 17 | no_implicit_init_deps: true 18 | build_vars: 19 | BOARD: "" 20 | FOO: bar 21 | MGOS: "1" 22 | cdefs: 23 | MGOS: "1" 24 | libs_version: "0.01" 25 | modules_version: "0.01" 26 | mongoose_os_version: "0.01" 27 | manifest_version: "2018-06-20" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_04_in_lib_manifest_submanifest_cond/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: My test app 3 | version: 1.0 4 | 5 | sources: 6 | - src 7 | 8 | filesystem: 9 | - fs 10 | 11 | libs: 12 | - location: https://github.com/mongoose-os-libs/mylib3 13 | - location: https://github.com/mongoose-os-libs/mylib2 14 | - location: https://github.com/mongoose-os-libs/mylib1 15 | 16 | config_schema: 17 | - ["myapp", "o", {title: "Myapp settings"}] 18 | 19 | build_vars: 20 | ESP_IDF_EXTRA_COMPONENTS: ${build_vars.ESP_IDF_EXTRA_COMPONENTS} from_app 21 | ESP_IDF_SDKCONFIG_OPTS: > 22 | ${build_vars.ESP_IDF_SDKCONFIG_OPTS} 23 | SOMETHING_FROM_APP=y 24 | 25 | manifest_version: 2017-09-29 26 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/libs_common/mylib4/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib4 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib4", "o", {title: "mylib4 settings"}] 15 | 16 | build_vars: 17 | LIB4_VAR1: lib4_var1 18 | LIB4_VAR2: lib4_var2 19 | LIB4_VAR3: lib4_var3 20 | 21 | conds: 22 | - when: defined(build_vars.NEW_VAR_FROM_CLI) 23 | apply: 24 | cdefs: 25 | NEW_VAR_FROM_CLI_WORKS_IN_LIB_CONDS: 1 26 | 27 | - when: build_vars.LIB4_VAR2 == "lib4_var2_from_cli" 28 | apply: 29 | cdefs: 30 | OVERRIDE_FROM_CLI_WORKS_IN_LIB_CONDS: 1 31 | 32 | manifest_version: 2017-09-29 33 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_07_excluded_files/test_02_cond_nonexcluded_files/expected/esp8266/mos_final.yml: -------------------------------------------------------------------------------- 1 | name: app 2 | type: app 3 | version: "1.0" 4 | platform: esp8266 5 | platforms: 6 | __ALL_PLATFORMS__ 7 | author: mongoose-os 8 | description: My test app 9 | sources: 10 | - __APP_ROOT__/app/src/app_src1.c 11 | - __APP_ROOT__/app/src/app_src2.c 12 | - __APP_ROOT__/app/src/app_src3.c 13 | - __APP_ROOT__/app/build/gen/mgos_deps_init.c 14 | modules: 15 | - name: mongoose-os 16 | location: https://github.com/cesanta/mongoose-os 17 | version: "0.01" 18 | no_implicit_init_deps: true 19 | build_vars: 20 | BOARD: "" 21 | MGOS: "1" 22 | cdefs: 23 | MGOS: "1" 24 | libs_version: "0.01" 25 | modules_version: "0.01" 26 | mongoose_os_version: "0.01" 27 | manifest_version: "2018-06-20" 28 | -------------------------------------------------------------------------------- /tools/docker/mos/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:jammy 2 | 3 | # https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository 4 | RUN apt-get update && \ 5 | apt-get -y install ca-certificates curl gnupg lsb-release && \ 6 | mkdir -p /etc/apt/keyrings && \ 7 | curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \ 8 | echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list && \ 9 | apt-get update && \ 10 | apt-get -y install docker-ce docker-ce-cli git libftdi1-2 libusb-1.0-0 && \ 11 | apt-get clean 12 | 13 | ADD mos /usr/local/bin 14 | 15 | ENTRYPOINT ["/usr/local/bin/mos"] 16 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_04_lib_conds_recursive/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | modules: 20 | - name: mongoose-os 21 | location: https://github.com/cesanta/mongoose-os 22 | version: "0.01" 23 | manifest_version: "2021-03-26" 24 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/libs_common/mylib4/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib4 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib4", "o", {title: "mylib4 settings"}] 15 | 16 | build_vars: 17 | MYLIB4_SWITCH_FOO: 0 18 | 19 | conds: 20 | - when: build_vars.MYLIB4_SWITCH_FOO == "1" 21 | apply: 22 | sources: 23 | - src/foo 24 | config_schema: 25 | - ["mylib4.foo", "i", 0, {title: "foo parameter"}] 26 | 27 | - when: build_vars.MYLIB4_SWITCH_FOO == "0" 28 | apply: 29 | config_schema: 30 | - ["mylib4.bar", "i", 0, {title: "bar (no-foo) parameter"}] 31 | 32 | manifest_version: 2017-09-29 33 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_03_in_lib_cond/libs/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib3", "o", {title: "mylib3 settings"}] 15 | 16 | libs: 17 | - location: https://github.com/mongoose-os-libs/mylib4 18 | 19 | conds: 20 | - when: mos.platform == "esp32" 21 | apply: 22 | build_vars: 23 | ESP_IDF_EXTRA_COMPONENTS: "${build_vars.ESP_IDF_EXTRA_COMPONENTS} from_mylib3" 24 | ESP_IDF_SDKCONFIG_OPTS: > 25 | ${build_vars.ESP_IDF_SDKCONFIG_OPTS} 26 | SOMETHING_FROM_MYLIB3=y 27 | SOMETHING_ELSE_FROM_MYLIB3=y 28 | 29 | manifest_version: 2017-09-29 30 | -------------------------------------------------------------------------------- /cli/flash/esp32s3/stub/platform.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "soc/spi_mem_reg.h" 4 | 5 | #include "esp32s3/rom/efuse.h" 6 | #include "esp32s3/rom/ets_sys.h" 7 | #include "esp32s3/rom/md5_hash.h" 8 | #include "esp32s3/rom/miniz.h" 9 | #include "esp32s3/rom/rtc.h" 10 | #include "esp32s3/rom/spi_flash.h" 11 | #include "esp32s3/rom/uart.h" 12 | 13 | #include "soc/gpio_reg.h" 14 | #include "soc/spi_mem_reg.h" 15 | #include "soc/system_reg.h" 16 | #include "soc/uart_reg.h" 17 | 18 | #define CPU_FREQ_MHZ 40 19 | #define LED_GPIO 3 20 | 21 | void stub_platform_init(void); 22 | 23 | static inline void stub_spi_flash_wait_idle(void) { 24 | esp_rom_spiflash_wait_idle(&g_rom_flashchip); 25 | } 26 | 27 | static inline uint32_t stub_get_ccount(void) { 28 | uint32_t r; 29 | __asm volatile("rsr.ccount %0" : "=a"(r)); 30 | return r; 31 | } 32 | -------------------------------------------------------------------------------- /cli/flash/esp32c3/stub/platform.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "soc/spi_mem_reg.h" 4 | 5 | #include "esp32c3/rom/efuse.h" 6 | #include "esp32c3/rom/ets_sys.h" 7 | #include "esp32c3/rom/md5_hash.h" 8 | #include "esp32c3/rom/miniz.h" 9 | #include "esp32c3/rom/rtc.h" 10 | #include "esp32c3/rom/spi_flash.h" 11 | #include "esp32c3/rom/uart.h" 12 | 13 | #include "soc/gpio_reg.h" 14 | #include "soc/spi_mem_reg.h" 15 | #include "soc/system_reg.h" 16 | #include "soc/uart_reg.h" 17 | 18 | #define CPU_FREQ_MHZ 40 19 | #define LED_GPIO 3 20 | 21 | void stub_platform_init(void); 22 | 23 | static inline void stub_spi_flash_wait_idle(void) { 24 | esp_rom_spiflash_wait_idle(&g_rom_flashchip); 25 | } 26 | 27 | static inline uint32_t stub_get_ccount(void) { 28 | uint32_t r; 29 | __asm volatile("csrr %0, 0x7e2" : "=r"(r)); // MPCCR 30 | return r; 31 | } 32 | -------------------------------------------------------------------------------- /cli/flash/esp/stub/led.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2018 Cesanta Software Limited 3 | * All rights reserved 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #pragma once 19 | 20 | void led_setup(int io); 21 | void led_on(int io); 22 | void led_off(int io); 23 | void led_toggle(int io); 24 | -------------------------------------------------------------------------------- /tools/archlinux_pkgbuild/mos-latest/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=mos-latest 2 | pkgver=autogenerated_below 3 | pkgrel=1 4 | pkgdesc="Mongoose-OS build tool (latest)" 5 | arch=('i686' 'x86_64') 6 | license=('Apache') 7 | url="https://mongoose-os.com/docs/mongoose-os/quickstart/setup.md" 8 | depends=('libftdi-compat' 'libusb') 9 | makedepends=( 10 | 'gcc' 11 | 'go' 12 | 'git' 13 | 'jq' 14 | 'make' 15 | 'pkgconf' 16 | 'python3' 17 | ) 18 | conflicts=('mos') 19 | 20 | source=(git+https://github.com/mongoose-os/mos.git#branch=master) 21 | 22 | md5sums=('SKIP') 23 | 24 | pkgver() { 25 | make -C "$srcdir/mos" clean-version version/version.json > /dev/null 26 | make -s -C "$srcdir/mos" get-version 27 | } 28 | 29 | build() { 30 | make -C "$srcdir/mos" mos 31 | } 32 | 33 | package() { 34 | install -D "$srcdir/mos/mos" "$pkgdir/usr/bin/mos" 35 | } 36 | -------------------------------------------------------------------------------- /cli/flash/cc32xx/device_control.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014-2019 Cesanta Software Limited 3 | // All rights reserved 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | package cc32xx 18 | 19 | type DeviceControl interface { 20 | EnterBootLoader() error 21 | BootFirmware() error 22 | Close() 23 | } 24 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_03_weak_dep_used/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: 1.2.3 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | - name: mylib3 15 | location: https://github.com/mongoose-os-libs/mylib3 16 | version: "0.01" 17 | user_version: "1.0" 18 | - name: mylib4 19 | location: https://github.com/mongoose-os-libs/mylib4 20 | version: "0.01" 21 | user_version: "1.0" 22 | modules: 23 | - name: mongoose-os 24 | location: https://github.com/cesanta/mongoose-os 25 | version: "0.01" 26 | manifest_version: "2021-03-26" 27 | -------------------------------------------------------------------------------- /cli/flash/esp/stub/slip.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2018 Cesanta Software Limited 3 | * All rights reserved 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #pragma once 19 | 20 | #include 21 | 22 | void SLIP_send(const void *pkt, uint32_t size); 23 | uint32_t SLIP_recv(void *pkt, uint32_t max_len); 24 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_02_override_with_cli/app/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os ${build_vars.EXT_VAR} 2 | summary: Hello ${build_vars.LIB4_VAR2} 3 | description: My test app ${build_vars.LIB4_VAR2} 4 | version: 1.0-${build_vars.EXT_VAR} 5 | 6 | sources: 7 | - src 8 | 9 | cflags: 10 | - -I${build_vars.LIB4_VAR2}/include 11 | 12 | cxxflags: 13 | - -I${build_vars.LIB4_VAR3}/include/c++ 14 | 15 | filesystem: 16 | - fs 17 | 18 | libs: 19 | - location: https://github.com/mongoose-os-libs/mylib3 20 | - location: https://github.com/mongoose-os-libs/mylib2 21 | - location: https://github.com/mongoose-os-libs/mylib1 22 | 23 | config_schema: 24 | - ["myapp", "o", {title: "Myapp settings"}] 25 | 26 | build_vars: 27 | LIB4_VAR2: ${build_vars.LIB4_VAR2} app 28 | LIB4_VAR3: ${build_vars.LIB4_VAR3} app 29 | 30 | manifest_version: 2017-09-29 31 | -------------------------------------------------------------------------------- /cli/flash/esp32/stub/uart.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2018 Cesanta Software Limited 3 | * All rights reserved 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #pragma once 19 | 20 | #include 21 | 22 | uint32_t set_baud_rate(uint32_t uart_no, uint32_t old_baud_rate, 23 | uint32_t new_baud_rate); 24 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/test_04_weak_dep_absent/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/flash/esp32c3/stub/uart.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2018 Cesanta Software Limited 3 | * All rights reserved 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #pragma once 19 | 20 | #include 21 | 22 | uint32_t set_baud_rate(uint32_t uart_no, uint32_t old_baud_rate, 23 | uint32_t new_baud_rate); 24 | -------------------------------------------------------------------------------- /cli/flash/esp32s3/stub/uart.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2018 Cesanta Software Limited 3 | * All rights reserved 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #pragma once 19 | 20 | #include 21 | 22 | uint32_t set_baud_rate(uint32_t uart_no, uint32_t old_baud_rate, 23 | uint32_t new_baud_rate); 24 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_09_error/test_04_error_lib_cond/expected/esp8266/mos_final.yml: -------------------------------------------------------------------------------- 1 | name: app 2 | type: app 3 | version: "1.0" 4 | platform: esp8266 5 | platforms: 6 | __ALL_PLATFORMS__ 7 | author: mongoose-os 8 | description: My app 9 | sources: 10 | - __APP_ROOT__/app/build/gen/mgos_deps_init.c 11 | modules: 12 | - name: mongoose-os 13 | location: https://github.com/cesanta/mongoose-os 14 | version: "0.01" 15 | build_vars: 16 | BOARD: "" 17 | MGOS: "1" 18 | MGOS_HAVE_CORE: "1" 19 | cdefs: 20 | MGOS: "1" 21 | MGOS_HAVE_CORE: "1" 22 | libs_version: "0.01" 23 | modules_version: "0.01" 24 | mongoose_os_version: "0.01" 25 | manifest_version: "2019-04-26" 26 | libs_handled: 27 | - lib: 28 | name: core 29 | location: https://github.com/mongoose-os-libs/core 30 | path: __APP_ROOT__/libs/core 31 | version: "0.01" 32 | user_version: "1.0" 33 | init_deps: 34 | - core 35 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_05_platforms_restriction/test_01_platforms/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_01_override/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /fwbuild/common/fwbuild_common.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2018 Cesanta Software Limited 3 | * All rights reserved 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the ""License""); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an ""AS IS"" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package fwbuildcommon 19 | 20 | const ( 21 | // The code which is returned by the fwbuild-instance binary in case of 22 | // build failure 23 | FwbuildExitCodeBuildFailed = 200 24 | ) 25 | -------------------------------------------------------------------------------- /cli/devutil/serial_posix.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014-2019 Cesanta Software Limited 3 | // All rights reserved 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // +build !windows 18 | 19 | package devutil 20 | 21 | func getDefaultPort() string { 22 | ports := EnumerateSerialPorts() 23 | if len(ports) == 0 { 24 | return "" 25 | } 26 | return ports[0] 27 | } 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_03_extend_with_cli/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_03_in_lib_cond/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_02_override_with_cli/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_01_in_lib_manifest/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/common/stat.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014-2019 Cesanta Software Limited 3 | // All rights reserved 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | package moscommon 18 | 19 | type BuildStat struct { 20 | ArchOld string `json:"arch"` 21 | Platform string `json:"platform"` 22 | AppName string `json:"app_name"` 23 | BuildTimeMS int `json:"build_time_ms"` 24 | } 25 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_01_app_doesnt_override/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_01_app_doesnt_override/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_02_app_overrides_to_1/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_02_app_overrides_to_1/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_03_app_overrides_to_0/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_01_conds_switch_with_arch_manifests/test_03_app_overrides_to_0/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_02_app_overrides_to_1/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "2.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_03_app_overrides_to_0/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "2.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_02_in_lib_submanifest/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_01_app_doesnt_override/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: Test_app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "2.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_02_app_overrides_to_1/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "2.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_03_app_overrides_to_0/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "2.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/flash/cc32xx/serial.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014-2019 Cesanta Software Limited 3 | // All rights reserved 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // +build !linux 18 | 19 | package cc32xx 20 | 21 | import "github.com/juju/errors" 22 | 23 | func GetUSBSerialNumberForPort(port string) (string, error) { 24 | // Not supported 25 | return "", errors.NotImplementedf("") 26 | } 27 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_01_app_doesnt_override/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: Test_app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "2.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_04_in_lib_manifest_submanifest_cond/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "1.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_04_app_overrides_to_1_cli_overrides_to_0/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "2.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_04_app_overrides_to_1_cli_overrides_to_0/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "2.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_05_app_overrides_to_0_cli_overrides_to_1/expected/esp32/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "2.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_02_conds_switch_without_arch_manifests/test_05_app_overrides_to_0_cli_overrides_to_1/expected/esp8266/mgos_deps_manifest.yml: -------------------------------------------------------------------------------- 1 | app_name: app 2 | libs: 3 | - name: core 4 | location: https://github.com/mongoose-os-libs/core 5 | version: "0.01" 6 | user_version: "1.0" 7 | - name: mylib1 8 | location: https://github.com/mongoose-os-libs/mylib1 9 | version: "0.01" 10 | user_version: "2.0" 11 | - name: mylib2 12 | location: https://github.com/mongoose-os-libs/mylib2 13 | version: "0.01" 14 | user_version: "1.0" 15 | - name: mylib3 16 | location: https://github.com/mongoose-os-libs/mylib3 17 | version: "0.01" 18 | user_version: "1.0" 19 | - name: mylib4 20 | location: https://github.com/mongoose-os-libs/mylib4 21 | version: "0.01" 22 | user_version: "1.0" 23 | modules: 24 | - name: mongoose-os 25 | location: https://github.com/cesanta/mongoose-os 26 | version: "0.01" 27 | manifest_version: "2021-03-26" 28 | -------------------------------------------------------------------------------- /cli/web_root/css/style.css: -------------------------------------------------------------------------------- 1 | @font-face { font-family: MetropolisRegular; src: url("../fonts/Metropolis-Regular.otf") format("opentype"); } 2 | @font-face { font-family: MetropolisBold; src: url("../fonts/Metropolis-Bold.otf") format("opentype"); } 3 | html, body { height: 100%; min-height: 100%; max-height: 100%; margin: 0; padding: 0; } 4 | * { outline: none !important; } 5 | body { color: #222; font: 15px/1.4 MetropolisRegular, Helvetica, Arial, sans-serif; } 6 | h1, h2, h3, h4, h5, h6, b, th, strong, .nav-link { font-family: MetropolisBold, Helvetica, Arial, sans-serif; color: #777; } 7 | .btn, input, textarea { outline: none; box-shadow:none !important; border: 1px solid #ccc !important; } 8 | .oa { overflow: auto; -ms-overflow-style: -ms-autohiding-scrollbar; } 9 | .tlf { table-layout: fixed; } 10 | .vat { vertical-align: top; } 11 | .prewrap { white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; } 12 | -------------------------------------------------------------------------------- /tools/archlinux_pkgbuild/mos-release/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: Deomid Ryabkov 2 | # Contributor: Daniel Pereira 3 | 4 | pkgname=mos 5 | pkgver=2.19.0 6 | pkgrel=1 7 | pkgdesc="Mongoose-OS build tool (release)" 8 | url="https://mongoose-os.com/docs/mongoose-os/quickstart/setup.md" 9 | arch=(x86_64) 10 | license=(Apache) 11 | depends=(libftdi libusb) 12 | makedepends=( 13 | gcc 14 | go 15 | git 16 | make 17 | pkgconf 18 | python3 19 | libftdi 20 | libftdi-compat 21 | ) 22 | conflicts=(mos-latest) 23 | source=("https://github.com/mongoose-os/mos/archive/${pkgver}.tar.gz") 24 | sha256sums=(0798ad17803e1c18afdce35f3ee29ac8b5bcdf8f902bd72d20b2568da6af76b9) 25 | 26 | build() { 27 | cd "$pkgname-$pkgver" || exit 1 28 | make mos 29 | } 30 | 31 | package() { 32 | cd "$pkgname-$pkgver" || exit 1 33 | 34 | install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" 35 | install -D mos "$pkgdir/usr/bin/mos" 36 | } 37 | -------------------------------------------------------------------------------- /cli/flash/esp8266/stub/platform.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014-2022 Cesanta Software Limited 3 | * All rights reserved 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #include "platform.h" 19 | 20 | void stub_platform_init(void) { 21 | SelectSpiFunction(); 22 | spi_flash_attach(); 23 | // Switch CPU to 160 MHz 24 | SET_PERI_REG_MASK(0x3ff00014, 1); 25 | // Increase SPI flash frequency 26 | WRITE_PERI_REG(SPI_CLOCK_REG(0), 0x00001001); 27 | } 28 | -------------------------------------------------------------------------------- /cli/flash/cc3200/device_control_dummy.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014-2019 Cesanta Software Limited 3 | // All rights reserved 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // +build !linux,!windows,!darwin 18 | 19 | package cc3200 20 | 21 | import ( 22 | "github.com/juju/errors" 23 | "github.com/mongoose-os/mos/cli/flash/cc32xx" 24 | ) 25 | 26 | func NewCC3200DeviceControl(port string) (cc32xx.DeviceControl, error) { 27 | return nil, errors.NotImplementedf("") 28 | } 29 | -------------------------------------------------------------------------------- /cli/flash/esp8266/stub/stub.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015 Cesanta Software Limited 3 | * All rights reserved 4 | */ 5 | 6 | MEMORY { 7 | iram : org = 0x40100000, len = 0x8000 8 | dram : org = 0x3FFE8000, len = 0x14000 9 | } 10 | 11 | ENTRY(stub_main) 12 | 13 | SECTIONS { 14 | .params 0x40100000 : { 15 | _params_start = ABSOLUTE(.); 16 | *(.params) 17 | _params_end = ABSOLUTE(.); 18 | } > iram 19 | 20 | .text : ALIGN(4) { 21 | _code_start = ABSOLUTE(.); 22 | *(.literal) 23 | *(.text .text.*) 24 | } > iram 25 | 26 | .bss : ALIGN(4) { 27 | _bss_start = ABSOLUTE(.); 28 | *(.bss .bss.*) 29 | _bss_end = ABSOLUTE(.); 30 | } > dram 31 | 32 | .data : ALIGN(4) { 33 | _data_start = ABSOLUTE(.); 34 | *(.data) 35 | *(.rodata .rodata.*) 36 | } > dram 37 | } 38 | 39 | INCLUDE "eagle.rom.addr.v6.ld" 40 | 41 | PROVIDE(SPIFlashModeConfig = 0x40004568); 42 | PROVIDE(SPI_erase_sector = 0x400040c0); 43 | PROVIDE(SPI_erase_block = 0x40004120); 44 | PROVIDE(uart_div_modify = 0x400039d8); 45 | -------------------------------------------------------------------------------- /cli/flash/cc3220/device_control_dummy.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014-2019 Cesanta Software Limited 3 | // All rights reserved 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // +build !linux,!windows,!darwin no_libudev 18 | 19 | package cc3220 20 | 21 | import ( 22 | "github.com/juju/errors" 23 | "github.com/mongoose-os/mos/cli/flash/cc32xx" 24 | ) 25 | 26 | func NewCC3220DeviceControl(port string) (cc32xx.DeviceControl, error) { 27 | return nil, errors.NotImplementedf("") 28 | } 29 | -------------------------------------------------------------------------------- /tools/ansible/include/systemd_cron/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - name: Create cron script wrappers directory 2 | file: path=/etc/systemd/cron-scripts state=directory 3 | 4 | - name: "{{ name }}: create service" 5 | template: src=include/systemd_cron/templates/job.service dest=/etc/systemd/system/{{ name }}.service 6 | 7 | - name: "{{ name }}: create timer ({{ time }})" 8 | template: src=include/systemd_cron/templates/job.timer dest=/etc/systemd/system/{{ name }}.timer 9 | 10 | - name: "{{ name }}: create wrapper" 11 | template: src=include/systemd_cron/templates/job.sh dest=/etc/systemd/cron-scripts/{{ name }}.sh mode=u+rwx 12 | 13 | - name: "{{ name }}: enable timer" 14 | service: name={{ name }}.timer state=started enabled=yes 15 | 16 | - name: "{{ name }}: pin timer" 17 | lineinfile: dest=/etc/systemd/system-preset/90-our.preset line="enable {{name}}.timer" create=yes mode=0644 18 | 19 | - name: "{{ name }}: pin timer service" 20 | lineinfile: dest=/etc/systemd/system-preset/90-our.preset line="enable {{name}}.service" create=yes mode=0644 21 | -------------------------------------------------------------------------------- /cli/flash/common/cmsis-dap/dap/cmsis_dap_client_dummy.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014-2019 Cesanta Software Limited 3 | // All rights reserved 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // +build no_libudev 18 | 19 | package dap 20 | 21 | import ( 22 | "context" 23 | 24 | "github.com/juju/errors" 25 | ) 26 | 27 | func NewClient(ctx context.Context, vid, pid uint16, serial string, intf, epIn, epOut int) (DAPClient, error) { 28 | return nil, errors.Errorf("not supported in this build") 29 | } 30 | -------------------------------------------------------------------------------- /cli/flash/stm32/flasher_darwin.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014-2019 Cesanta Software Limited 3 | // All rights reserved 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | package stm32 18 | 19 | import ( 20 | "github.com/juju/errors" 21 | ) 22 | 23 | func GetSTLinkMountForPort(port string) (string, string, error) { 24 | // TODO(rojer) 25 | return "", "", errors.NotImplementedf("GetSTLinkMountForPort") 26 | } 27 | 28 | func GetSTLinkMounts() ([]string, error) { 29 | return getSTLinkMountsInDir("/Volumes") 30 | } 31 | -------------------------------------------------------------------------------- /cli/common/form.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014-2019 Cesanta Software Limited 3 | // All rights reserved 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | package moscommon 18 | 19 | const ( 20 | // Form names used for remote builds 21 | FormBuildCtxName = "build_ctx" 22 | FormBuildStatName = "build_stat" 23 | FormCleanName = "clean" 24 | FormPreferPrebuildLibsName = "prefer_prebuilt_libs" 25 | FormSourcesZipName = "file" 26 | FormBuildParamsName = "build_params" 27 | ) 28 | -------------------------------------------------------------------------------- /cli/devutil/serial_linux.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014-2019 Cesanta Software Limited 3 | // All rights reserved 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | package devutil 18 | 19 | import ( 20 | "path/filepath" 21 | "sort" 22 | ) 23 | 24 | func EnumerateSerialPorts() []string { 25 | // Note: Prefer ttyUSB* to ttyACM*. 26 | list1, _ := filepath.Glob("/dev/ttyUSB*") 27 | sort.Strings(list1) 28 | list2, _ := filepath.Glob("/dev/ttyACM*") 29 | sort.Strings(list2) 30 | return append(list1, list2...) 31 | } 32 | -------------------------------------------------------------------------------- /tools/docker/golang/Dockerfile.ubuntu-golang: -------------------------------------------------------------------------------- 1 | ARG base 2 | FROM $base 3 | 4 | RUN eval $(cat /etc/lsb-release) && \ 5 | ([ "$DISTRIB_CODENAME" != "xenial" -a "$DISTRIB_CODENAME" != "bionic" ] || \ 6 | ( apt-get update && \ 7 | DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends software-properties-common && \ 8 | add-apt-repository ppa:longsleep/golang-backports ) ) && \ 9 | apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ 10 | build-essential fakeroot git git-build-recipe gnupg golang \ 11 | libftdi-dev libftdi1-dev libusb-1.0-0-dev \ 12 | packaging-dev pkg-config pbuilder pristine-tar \ 13 | python3 rsync ubuntu-dev-tools wget && \ 14 | apt-get clean 15 | 16 | RUN chmod 0777 /home 17 | 18 | ENV HOME=/home 19 | ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/go/bin 20 | ENV DEBFULLNAME="Cesanta Bot" 21 | ENV DEBEMAIL="cesantabot@cesanta.com" 22 | RUN git config --global user.name "Cesanta Bot" && git config --global user.email "cesantabot@cesanta.com" 23 | -------------------------------------------------------------------------------- /cli/flash/esp32c3/stub/spi_flash_rom_patch.c: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2020 Espressif Systems (Shanghai) PTE LTD 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | #include "sdkconfig.h" 15 | #include "esp32c3/rom/spi_flash.h" 16 | #include "soc/spi_periph.h" 17 | #include "spi_flash/spi_flash_defs.h" 18 | 19 | #define SPI_IDX 1 20 | 21 | esp_rom_spiflash_result_t esp_rom_spiflash_write_disable(void) 22 | { 23 | REG_WRITE(SPI_MEM_CMD_REG(SPI_IDX), SPI_MEM_FLASH_WRDI); 24 | while (READ_PERI_REG(PERIPHS_SPI_FLASH_CMD) != 0); 25 | return ESP_ROM_SPIFLASH_RESULT_OK; 26 | } 27 | -------------------------------------------------------------------------------- /cli/manifest_parser/test_manifests/testset_04_vars_override_from_root_manifest/test_04_in_lib_manifest_submanifest_cond/libs/mylib3/mos.yml: -------------------------------------------------------------------------------- 1 | author: mongoose-os 2 | description: Mylib3 3 | type: lib 4 | version: 1.0 5 | 6 | sources: 7 | - src 8 | includes: 9 | - include 10 | filesystem: 11 | - fs 12 | 13 | config_schema: 14 | - ["mylib3", "o", {title: "mylib3 settings"}] 15 | 16 | libs: 17 | - location: https://github.com/mongoose-os-libs/mylib4 18 | 19 | conds: 20 | - when: mos.platform == "esp32" 21 | apply: 22 | build_vars: 23 | ESP_IDF_EXTRA_COMPONENTS: "${build_vars.ESP_IDF_EXTRA_COMPONENTS} from_mylib3_cond" 24 | ESP_IDF_SDKCONFIG_OPTS: > 25 | ${build_vars.ESP_IDF_SDKCONFIG_OPTS} 26 | SOMETHING_FROM_MYLIB3_COND=y 27 | SOMETHING_ELSE_FROM_MYLIB3_COND=y 28 | 29 | build_vars: 30 | ESP_IDF_EXTRA_COMPONENTS: "${build_vars.ESP_IDF_EXTRA_COMPONENTS} from_mylib3_main" 31 | ESP_IDF_SDKCONFIG_OPTS: > 32 | ${build_vars.ESP_IDF_SDKCONFIG_OPTS} 33 | SOMETHING_FROM_MYLIB3_MAIN=y 34 | SOMETHING_ELSE_FROM_MYLIB3_MAIN=y 35 | 36 | manifest_version: 2017-09-29 37 | --------------------------------------------------------------------------------