Skip to content

Commit b3e3789

Browse files
committed
kmk frozen
1 parent 6e021a9 commit b3e3789

19 files changed

Lines changed: 119 additions & 140 deletions

Dockerfile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ FROM ubuntu:20.04
22

33
USER root
44
WORKDIR /cpy
5-
# COPY ./cpy/circuitpython .
65
COPY ./dockersetupcmd.sh .
7-
# COPY ./dockerfinishcmd.sh .
86

97
ARG DEBIAN_FRONTEND=noninteractive
108
RUN apt-get update && \
@@ -18,11 +16,27 @@ RUN apt-get update && \
1816
python3.8\
1917
python3-pip\
2018
gettext\
19+
curl\
2120
wget && \
2221
apt-get clean
22+
2323
RUN wget -qO- https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 | tar -xj
24+
RUN apt-get update
25+
26+
# Get Rust
27+
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
28+
29+
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
30+
31+
2432

2533
ENV PATH "/cpy/gcc-arm-none-eabi-9-2019-q4-major/bin:$PATH"
34+
ENV PATH="/root/.cargo/bin:${PATH}"
35+
36+
RUN git config --global --add safe.directory /cpy/circuitpython
37+
RUN git config --global --add safe.directory '*'
38+
39+
2640

2741
# RUN apt-get update && apt-get install -y gettext librsvg2-bin git mingw-w64 latexmk texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra gcc-aarch64-linux-gnu wget python3.8 python3-pip && apt-get clean
2842
# RUN make fetch-submodules

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ gitpython = "*"
99
[dev-packages]
1010

1111
[requires]
12-
python_version = "3.9"
12+
python_version = "3"

Pipfile.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

board_mapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
board_dir="./bs_python_boards"
55
cpy_dir = "./cpy/circuitpython"
6-
build_script= "#!/bin/bash\n"
6+
build_script= "#!/bin/bash\nmake update-frozen-modules\n"
77
post_build_script= "#!/bin/bash\n"
88
def generate_build_script():
99
build_script_path= f'{cpy_dir}/dockerbuildcmd.sh'

bs_python_boards/nrf/nice_nano_bs/mpconfigboard.h

Lines changed: 0 additions & 45 deletions
This file was deleted.

bs_python_boards/nrf/nice_nano_bs/mpconfigboard.mk

Lines changed: 0 additions & 12 deletions
This file was deleted.

bs_python_boards/nrf/nice_nano_bs/pins.c

Lines changed: 0 additions & 62 deletions
This file was deleted.

bs_python_boards/nrf/nice_nano_bs/board.c renamed to bs_python_boards/raspberrypi/boardsource_blok_full/board.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* The MIT License (MIT)
55
*
6-
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
6+
* Copyright (c) 2021 Scott Shawcroft for Adafruit Industries
77
*
88
* Permission is hereby granted, free of charge, to any person obtaining a copy
99
* of this software and associated documentation files (the "Software"), to deal
@@ -25,6 +25,9 @@
2525
*/
2626

2727
#include "supervisor/board.h"
28+
#include "shared-bindings/microcontroller/Pin.h"
29+
#include "src/rp2_common/hardware_gpio/include/hardware/gpio.h"
30+
#include "supervisor/shared/board.h"
2831

2932
void board_init(void) {
3033
}
@@ -34,7 +37,8 @@ bool board_requests_safe_mode(void) {
3437
}
3538

3639
void reset_board(void) {
37-
40+
// turn off any left over LED
41+
// board_reset_user_neopixels(&pin_GPIO29, 62);
3842
}
3943

4044
void board_deinit(void) {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#define MICROPY_HW_BOARD_NAME "BLOK"
2+
#define MICROPY_HW_MCU_NAME "rp2040"
3+
4+
#define MICROPY_HW_NEOPIXEL (&pin_GPIO29)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
USB_VID = 0x4273
2+
USB_PID = 0x7685
3+
USB_PRODUCT = "BLOK"
4+
USB_MANUFACTURER = "Boardsource"
5+
6+
CHIP_VARIANT = RP2040
7+
CHIP_FAMILY = rp2
8+
9+
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"
10+
11+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
12+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Display_Text
13+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_DisplayIO_SSD1306
14+
# FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_PIOASM
15+
FROZEN_MPY_DIRS += $(TOP)/frozen/peg_kmk_firmware/src
16+
17+
# CIRCUITPY__EVE = 1

0 commit comments

Comments
 (0)