Skip to content

Instantly share code, notes, and snippets.

@kergoth
Last active February 8, 2017 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kergoth/ae0f426b8b6f426b6b4f7a70a024b5b8 to your computer and use it in GitHub Desktop.
Save kergoth/ae0f426b8b6f426b6b4f7a70a024b5b8 to your computer and use it in GitHub Desktop.
# TODO: rename APPEND to something more appropriate
APPEND ?= "${APPEND_SERIAL} console=tty0 ${APPEND_SPLASH}"
#APPEND += "${APPEND_KGDBOC}"
APPEND_SPLASH = "${@'quiet splash' if '${SPLASH}' else ''}"
APPEND_SPLASH .= "${@' plymouth:ignore-serial-consoles' if '${SPLASH}' == 'plymouth' else ''}"
APPEND_SERIAL = "${@'console=${CMD_SERIAL_CONSOLE}' if '${SERIAL_CONSOLE}' else ''}"
CMD_SERIAL_CONSOLE ?= "${@','.join(reversed('${SERIAL_CONSOLE}'.split()))}"
APPEND_KGDBOC = "kgdbwait kgdboc=${CMD_SERIAL_CONSOLE}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment