Skip to content

Commit

Permalink
initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Feb 17, 2021
0 parents commit 224dfd3
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'build'

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Build bootloader and partition table
uses: docker://docker.io/espressif/idf:release-v4.3
with:
args: ./build.sh
- name: Update release
if: "github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')"
uses: eine/tip@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
out/*
tag: latest
rm: true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build
out
sdkconfig
sdkconfig.old
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(dummy)
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Bootloader and partition table for NuttX

This repository contains a minimal ESP-IDF project and build scripts used to produce 2nd stage bootloader and partition table binaries. Users of NuttX RTOS can download the binaries from release artifacts in this repository.
15 changes: 15 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -euo pipefail

targets="esp32 esp32s2 esp32c3"

mkdir -p out

for target in ${targets}; do
idf.py set-target ${target}
idf.py bootloader partition_table
cp build/bootloader/bootloader.bin out/bootloader-${target}.bin
cp build/partition_table/partition-table.bin out/partition-table-${target}.bin
cp sdkconfig out/sdkconfig
done
2 changes: 2 additions & 0 deletions partitions.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Name, Type, SubType, Offset, Size, Flags
factory, app, factory, , 1M,
2 changes: 2 additions & 0 deletions sdkconfig.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"

0 comments on commit 224dfd3

Please sign in to comment.