-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
36,451 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#! /bin/sh | ||
# | ||
_TIME_Y=`date +%-Y` | ||
_TIME_m=`date +%-m` | ||
_TIME_d=`date +%-d` | ||
_TIME_H=`date +%-H` | ||
_TIME_M=`date +%-M` | ||
_TIME_S=`date +%-S` | ||
ASMDATE=`date -u +".long "%Y%m%d` | ||
CC=${CC:-gcc} | ||
NOBUILDID=${NOBUILDID:-0} | ||
|
||
if [ "$NOBUILDID" = "0" ]; then | ||
BUILDID=-Wl,--build-id=none | ||
else | ||
BUILDID= | ||
fi | ||
|
||
echo "#define _TIME_Y $_TIME_Y" >fat_config.h | ||
echo "#define _TIME_m $_TIME_m" >>fat_config.h | ||
echo "#define _TIME_d $_TIME_d" >>fat_config.h | ||
echo "#define _TIME_H $_TIME_H" >>fat_config.h | ||
echo "#define _TIME_M $_TIME_M" >>fat_config.h | ||
echo "#define _TIME_S $_TIME_S" >>fat_config.h | ||
echo "#define GET_FATTIME" >>fat_config.h | ||
gcc -I../../include/ -nostdlib -DASM_BUILD_DATE="\"$ASMDATE"\" -fno-reorder-functions -fno-strict-aliasing -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-zero-initialized-in-bss -fno-function-cse -fno-jump-tables --entry main -Wl,-N $BUILDID -fPIE fat.c ff.c -o fat.o | ||
gcc -I../../include/ -DFAT_MINI -DASM_BUILD_DATE="\"$ASMDATE"\" -nostdlib -fno-reorder-functions -fno-strict-aliasing -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-zero-initialized-in-bss -fno-function-cse -fno-jump-tables --entry main -Wl,-N $BUILDID -fPIE fat.c ff.c -o fatmini.o | ||
objcopy -O binary fat.o fat | ||
objcopy -O binary fatmini.o fatmini | ||
rm fat*.o | ||
date=`date -u +%Y-%m-%d` | ||
zip -9 -r -q "../fat-$date.zip" fat fatmini |
Oops, something went wrong.