Завершить разделение SDK и внешних проектов
This commit is contained in:
@@ -13,9 +13,10 @@
|
||||
# - runtime/ : crt0 + bank/heap support
|
||||
# - libc/include/ : public headers
|
||||
# - libc/{io,stdio,mem,gfx}/ : libc sources (assembled into sprinter.lib)
|
||||
# - lib/Makefile + lib/sprinter.lib : prebuilt library + recipe to rebuild
|
||||
# - lib/*.lib : prebuilt libc/BGI variants
|
||||
# - app.mk + disk/run tools : standalone application integration
|
||||
# - libbgi/ + lib/bgi256*.lib : graphics library
|
||||
# - tests/ + testkit/ : SDK regression programs
|
||||
# - third_party/sdcc/ : vendored SDCC 4.5
|
||||
# - release_docs/ → docs/ : user-facing documentation
|
||||
# - root Makefile, README, RELEASE_NOTES, LICENSE
|
||||
@@ -54,7 +55,7 @@ mkdir -p "$STAGE"
|
||||
cp README.md RELEASE_NOTES.md LICENSE Makefile app.mk "$STAGE/"
|
||||
|
||||
# Toolchain
|
||||
cp -R bin runtime libc libbgi "$STAGE/"
|
||||
cp -R bin runtime libc libbgi tests testkit "$STAGE/"
|
||||
# Core tools and source debugger backend needed by sprinter-cc/app.mk.
|
||||
mkdir -p "$STAGE/toolchain/mkexe"
|
||||
cp toolchain/mkexe/mkexe "$STAGE/toolchain/mkexe/"
|
||||
@@ -72,9 +73,8 @@ cp -R toolchain/mcp "$STAGE/toolchain/"
|
||||
|
||||
# Lib — keep Makefile and the prebuilt archive only; sources are in libc/
|
||||
mkdir -p "$STAGE/lib"
|
||||
cp lib/Makefile "$STAGE/lib/"
|
||||
cp lib/sprinter.lib "$STAGE/lib/"
|
||||
cp lib/sprinter_safe.lib lib/bgi256.lib lib/bgi256_safe.lib "$STAGE/lib/"
|
||||
cp lib/sprinter.lib lib/sprinter_safe.lib \
|
||||
lib/bgi256.lib lib/bgi256_safe.lib "$STAGE/lib/"
|
||||
|
||||
# Vendored SDCC — follow symlinks so the real content lands in the tarball
|
||||
mkdir -p "$STAGE/third_party"
|
||||
@@ -90,6 +90,7 @@ mkdir -p "$STAGE/third_party"
|
||||
echo ">> stripping build artefacts and macOS metadata"
|
||||
find "$STAGE" \( \
|
||||
-name '.sprinter-cc-*' -o \
|
||||
-name '.resource-stamps' -o -name build -o \
|
||||
-name '*.rel' -o -name '*.lst' -o -name '*.sym' -o -name '*.asm' -o \
|
||||
-name '*.ihx' -o -name '*.lk' -o -name '*.map' -o -name '*.noi' -o \
|
||||
-name '*.exe' -o \
|
||||
|
||||
Reference in New Issue
Block a user