A skeleton project for building LUFA using the TUP build system.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Config
LUFA
Lib
Descriptors.c
Descriptors.h
Lufa.tup
README.md
RNDISEthernet.cpp
RNDISEthernet.h
Tupfile
Tuprules.tup

README.md

TUP LUFA Skeleton

This is a skeleton project for building the LUFA using the TUP Build System.

This skeleton project is based on the low-level RNDIS project that ships with LUFA as an example project. All LUFA library code is stored in the ./LUFA/ directory. The skeleton is currently configured to build for the Teensy++ 2.0 dev board, but all LUFA build flags should work properly.

TUP is a simple, fast, understandable build system. After years of grumbling about Make, and hoarding example Makefiles that only every mostly work, Tup is a breath of fresh air. After an afternoon of reading, I was writing Tupfiles from scratch that were more readable and understandable than any Makefile.

This project is based on LUFA 120730, and has minimal changes from the original source.

Meat

The meat of this project is in "Tuprules.tup". Here, set your MCU, CPU Speed, Architecture, Board, and other build variables just as you would for the equivalent Make-based LUFA project.

Lufa.tup contains object-file definitions for various portions of the LUFA project. Include these variables on line 12 (the linker line) of the root Tupfile. The necessary dependencies will be automatically compiled and linked.