Skip to content
Snippets Groups Projects
Commit 23aa643b authored by schneider's avatar schneider
Browse files

Merge branch 'rahix/assorted-fixes' into 'master'

Assorted fixes/cleanups

See merge request !401
parents 0b136517 b9ebcd15
Branches
Tags
1 merge request!401Assorted fixes/cleanups
Pipeline #4719 passed
......@@ -15,6 +15,14 @@ sys.path.insert(0, os.path.abspath("./"))
logger = sphinx.util.logging.getLogger("card10/conf.py")
# Hawkmoth does not yet support Sphinx 3
#
# See https://github.com/jnikula/hawkmoth/issues/17
if sphinx.version_info[0] > 2:
logger.warning(
"Sphinx versions >= 3 are not yet working properly with hawkmoth. Documentation of C items will probably be broken ..."
)
# -- Project information -----------------------------------------------------
......
......@@ -6,8 +6,12 @@ BIN1="$2"
BIN2="$3"
BINOUT="$4"
dd if=/dev/zero ibs=1k count=448 2>/dev/null | LANG=C LC_CTYPE=C LC_ALL=C LC_COLLATE=C tr "\000" "\377" > "$BINOUT"
dd if="$BIN1" of="$BINOUT" conv=notrunc 2>/dev/null
dd if="$BIN2" >> "$BINOUT" 2>/dev/null
if [ "$(stat -c "%s" "${BIN1}")" -gt 458752 ]; then
echo "$0: ${BIN1} is too big to fit!" >&2
exit 1
fi
objcopy -I binary -O binary --pad-to=458752 --gap-fill=255 "${BIN1}" "$BINOUT"
cat "$BIN2" >>"$BINOUT"
"$PYTHON" "$(dirname "$0")/crc_patch.py" "$BINOUT"
......@@ -20,6 +20,7 @@ assert(
add_global_arguments(
'-Wno-unused-parameter',
'-Wno-old-style-declaration',
'-Wno-char-subscripts',
meson.get_cross_property('target_defs'),
language: 'c',
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment