mirror of
https://github.com/Fishwaldo/meta-riscv.git
synced 2025-03-15 19:41:42 +00:00
linux-riscv: Add earlyprintk.cfg for qemu
- early printk is must for qemu to work - Remove dead code - Update to tip of respective branches Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
dfc6f46d96
commit
9ffc522446
3 changed files with 16 additions and 17 deletions
12
recipes-kernel/linux/files/earlyprintk.cfg
Normal file
12
recipes-kernel/linux/files/earlyprintk.cfg
Normal file
|
@ -0,0 +1,12 @@
|
|||
#
|
||||
# Enable EARLY_PRINTK and related PRINTK functionality
|
||||
#
|
||||
CONFIG_PRINTK=y
|
||||
CONFIG_PRINTK_TIME=y
|
||||
|
||||
CONFIG_EARLY_PRINTK=y
|
||||
|
||||
CONFIG_EARLY_PRINTK_DBGP=y
|
||||
CONFIG_EARLY_PRINTK_EFI=y
|
||||
CONFIG_TTY_PRINTK=y
|
||||
|
|
@ -32,15 +32,12 @@ inherit kernel siteinfo
|
|||
|
||||
BRANCH = "riscv-linux-4.15"
|
||||
|
||||
SRCREV = "7501d87f7ebf8337ab2efa3fe692612a3b845c6f"
|
||||
SRCREV_machine = "7501d87f7ebf8337ab2efa3fe692612a3b845c6f"
|
||||
SRCREV = "2b0aa1de45f63535f6d26757aa22b48515289302"
|
||||
SRCREV_machine = "2b0aa1de45f63535f6d26757aa22b48515289302"
|
||||
|
||||
SRC_URI = "git://github.com/riscv/riscv-linux.git;branch=${BRANCH} \
|
||||
file://earlyprintk.cfg \
|
||||
"
|
||||
|
||||
#do_install_prepend() {
|
||||
# # We are not building any modules, but the directory needs to be there.
|
||||
# mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/build
|
||||
#}
|
||||
require recipes-kernel/linux/linux-yocto.inc
|
||||
KERNEL_FEATURES_remove = "features/debug/printk.scc"
|
||||
|
|
|
@ -21,13 +21,6 @@ DEPENDS_append = " libgcc"
|
|||
KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}"
|
||||
KERNEL_LD_append = " -no-pie"
|
||||
|
||||
#KERNEL_FEATURES_append_riscv += " cfg/smp.scc"
|
||||
|
||||
#KERNEL_ALT_IMAGETYPE = ""
|
||||
|
||||
#KERNEL_OUTPUT = "vmlinux"
|
||||
#KERNEL_IMAGETYPE = "vmlinux"
|
||||
|
||||
inherit kernel siteinfo
|
||||
|
||||
BRANCH = "riscv-all"
|
||||
|
@ -36,11 +29,8 @@ SRCREV = "7f82cffaad50273eedb654b58167c662383eac99"
|
|||
SRCREV_machine = "7f82cffaad50273eedb654b58167c662383eac99"
|
||||
|
||||
SRC_URI = "git://github.com/riscv/riscv-linux.git;branch=${BRANCH} \
|
||||
file://earlyprintk.cfg \
|
||||
"
|
||||
|
||||
#do_install_prepend() {
|
||||
# # We are not building any modules, but the directory needs to be there.
|
||||
# mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/build
|
||||
#}
|
||||
require recipes-kernel/linux/linux-yocto.inc
|
||||
KERNEL_FEATURES_remove = "features/debug/printk.scc"
|
||||
|
|
Loading…
Add table
Reference in a new issue