Files
JIANT/ports/mpc-sample/Makefile
T
Claude 9f0ef52358 ports: JIANT FM as the MPC Sample's whole instrument
ports/mpc-sample: an app on keremimo's sample-base runtime (fetched at a
pinned commit), independent of any other app: the core at the MPC's
44.1 kHz in 128-frame blocks, JIANT's 240 x 240 screen in the middle of
the MPC's, the pads, buttons and knobs as the FM-1's panel
(src/jiant/panel_map.h), MIDI in from DIN and USB, the device's flash on
the card (JIANT/flash.img: copied out a second after a write, written on
the service thread, and on the way out). Tools: --self-test (the SD
boot runs it), --preview, --persist-write / --persist-read. The release
script makes the signed autorun zip for the card.

ports/core: the flash image in and out (jiant_flash_restore, jiant_flash,
jiant_flash_writes) and jiant_autosave_now for a port about to close.

.github/workflows/ports.yml: the core's test, the plugin, and the MPC
Sample app built and tested on ARM64 Debian bookworm, its zip an
artifact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
2026-11-20 15:10:47 +00:00

19 lines
1007 B
Makefile

# SPDX-License-Identifier: GPL-3.0-only
# Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant)
# JIANT FM on the MPC Sample: sample-base's layers (fetched into build/sample-base by build.sh) built with JIANT's
# app (src/) and JIANT's core (ports/core, built here for the same compiler). Run from this folder: ./build.sh.
BASE_SRC := build/sample-base/src
TARGET := build/jiant
APP_SOURCES := $(wildcard src/*.cpp src/*/*.cpp)
include build/sample-base/base.mk
CPPFLAGS += -I../core
# (newer g++ than Debian bookworm's no longer brings <cstdint> in with the other headers; sample-base's
# drivers/usb_gadget.h relies on it)
CXXFLAGS += -include cstdint
OBJECTS += build/core/jiant_core.o
$(TARGET): build/core/jiant_core.o
CORE_SOURCES := $(wildcard ../../firmware/src/*.c ../../firmware/src/*.h ../../web/emu/felucca_web.c ../../tests/hostsim.c ../core/jiant_core.*)
build/core/jiant_core.o: $(CORE_SOURCES)
cd ../.. && CC="$(CC)" AR="$(AR)" CORE_OUT=ports/mpc-sample/build/core sh ports/core/build.sh