Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df49771a authored by Nick Sanders's avatar Nick Sanders
Browse files

Allow factory specific kernel commandline



* BOARD_KERNEL_CMDLINE_FACTORY_BOOT can be set to
add kernel commandline items to the factory ramdisk,
such as fiq_debugger.console_enable=Y

Change-Id: Iee4060b96eaeecc517975c56342fd5445b1feabf
Signed-off-by: default avatarNick Sanders <nsanders@google.com>
parent 31fc69c2
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -75,10 +75,15 @@ $(INSTALLED_FACTORY_RAMDISK_FS) : $(MKBOOTFS) \

TARGET_RAMDISK_KERNEL := $(INSTALLED_KERNEL_TARGET)
INSTALLED_FACTORY_RAMDISK_TARGET := $(BUILT_FACTORY_RAMDISK_TARGET)
ifneq (,$(BOARD_KERNEL_CMDLINE_FACTORY_BOOT))
  RAMDISK_CMDLINE := --cmdline "$(BOARD_KERNEL_CMDLINE_FACTORY_BOOT)"
else
  RAMDISK_CMDLINE :=
endif
$(INSTALLED_FACTORY_RAMDISK_TARGET) : $(MKBOOTIMG) $(TARGET_RAMDISK_KERNEL) $(INSTALLED_FACTORY_RAMDISK_FS)
	$(call pretty,"Target factory ram disk img format: $@")
	$(MKBOOTIMG) --kernel $(TARGET_RAMDISK_KERNEL) --ramdisk $(INSTALLED_FACTORY_RAMDISK_FS) \
            --base $(BOARD_KERNEL_BASE) --output $@
            --base $(BOARD_KERNEL_BASE) $(RAMDISK_CMDLINE) --output $@

endif