diff --git a/config/Config-images.in b/config/Config-images.in index 12d579278..6b478bd6e 100644 --- a/config/Config-images.in +++ b/config/Config-images.in @@ -207,12 +207,12 @@ menu "Target Images" config GRUB_EFI_IMAGES bool "Build GRUB EFI images" - depends on TARGET_x86 || TARGET_armvirt || TARGET_loongarch64 || TARGET_phytium + depends on TARGET_x86 || TARGET_armsr || TARGET_loongarch64 || TARGET_phytium depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS select PACKAGE_grub2 if TARGET_x86 select PACKAGE_grub2-efi if TARGET_x86 select PACKAGE_grub2-bios-setup if TARGET_x86 - select PACKAGE_grub2-efi-arm if TARGET_armvirt + select PACKAGE_grub2-efi-arm if TARGET_armsr select PACKAGE_grub2-efi-arm if TARGET_phytium_armv8 select PACKAGE_grub2-efi-loongarch64 if TARGET_loongarch64 select PACKAGE_kmod-fs-vfat @@ -223,11 +223,6 @@ menu "Target Images" depends on GRUB_IMAGES || GRUB_EFI_IMAGES default y - config GRUB_SERIAL - string "Serial port device" - depends on GRUB_IMAGES || GRUB_EFI_IMAGES - default "ttyS0" - config GRUB_BAUDRATE int "Serial port baud rate" depends on GRUB_IMAGES || GRUB_EFI_IMAGES @@ -236,8 +231,8 @@ menu "Target Images" config GRUB_FLOWCONTROL bool "Use RTE/CTS on serial console" - depends on GRUB_SERIAL != "" - default n + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + depends on TARGET_SERIAL != "" config GRUB_BOOTOPTS string "Extra kernel boot options" @@ -255,10 +250,10 @@ menu "Target Images" config GRUB_TITLE string "Title for the menu entry in GRUB" depends on GRUB_IMAGES || GRUB_EFI_IMAGES - default "OpenWrt" + default "LEDE" help This is the title of the GRUB menu entry. - If unspecified, it defaults to OpenWrt. + If unspecified, it defaults to LEDE. config ISO_IMAGES bool "Build LiveCD image (ISO)" @@ -279,7 +274,7 @@ menu "Target Images" config VMDK_IMAGES bool "Build VMware image files (VMDK)" - depends on TARGET_x86 || TARGET_armvirt + depends on TARGET_x86 || TARGET_armsr depends on GRUB_IMAGES || GRUB_EFI_IMAGES select PACKAGE_kmod-e1000 @@ -289,9 +284,14 @@ menu "Target Images" depends on GRUB_IMAGES || GRUB_EFI_IMAGES select PACKAGE_kmod-e1000 + config TARGET_SERIAL + string "Serial port device" + depends on TARGET_x86 || TARGET_armsr || TARGET_loongarch64 || TARGET_phytium + default "ttyS0" + config TARGET_IMAGES_GZIP bool "GZip images" - depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armvirt || TARGET_malta || TARGET_loongarch64 + depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armsr || TARGET_malta || TARGET_loongarch64 default y comment "Image Options" @@ -303,8 +303,8 @@ menu "Target Images" int "Kernel partition size (in MiB)" depends on USES_BOOT_PART default 8 if TARGET_apm821xx_sata + default 128 if TARGET_armsr default 64 if TARGET_bcm27xx - default 128 if TARGET_armvirt default 32 if TARGET_rockchip default 16 diff --git a/target/linux/loongarch64/base-files.mk b/target/linux/loongarch64/base-files.mk index 88ba97d38..e2b7d05f5 100644 --- a/target/linux/loongarch64/base-files.mk +++ b/target/linux/loongarch64/base-files.mk @@ -1,6 +1,6 @@ -GRUB_SERIAL:=$(call qstrip,$(CONFIG_GRUB_SERIAL)) +GRUB_SERIAL:=$(call qstrip,$(CONFIG_TARGET_SERIAL)) ifeq ($(GRUB_SERIAL),) -$(error This platform requires CONFIG_GRUB_SERIAL be set!) +$(error This platform requires CONFIG_TARGET_SERIAL be set!) endif define Package/base-files/install-target diff --git a/target/linux/phytium/base-files.mk b/target/linux/phytium/base-files.mk index 88ba97d38..e2b7d05f5 100644 --- a/target/linux/phytium/base-files.mk +++ b/target/linux/phytium/base-files.mk @@ -1,6 +1,6 @@ -GRUB_SERIAL:=$(call qstrip,$(CONFIG_GRUB_SERIAL)) +GRUB_SERIAL:=$(call qstrip,$(CONFIG_TARGET_SERIAL)) ifeq ($(GRUB_SERIAL),) -$(error This platform requires CONFIG_GRUB_SERIAL be set!) +$(error This platform requires CONFIG_TARGET_SERIAL be set!) endif define Package/base-files/install-target diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile index 677b758e0..b7d2397aa 100644 --- a/target/linux/x86/image/Makefile +++ b/target/linux/x86/image/Makefile @@ -16,7 +16,7 @@ ifneq ($(CONFIG_GRUB_CONSOLE),) GRUB_TERMINALS += console endif -GRUB_SERIAL:=$(call qstrip,$(CONFIG_GRUB_SERIAL)) +GRUB_SERIAL:=$(call qstrip,$(CONFIG_TARGET_SERIAL)) ifneq ($(GRUB_SERIAL),) GRUB_CONSOLE_CMDLINE += console=$(GRUB_SERIAL),$(CONFIG_GRUB_BAUDRATE)n8$(if $(CONFIG_GRUB_FLOWCONTROL),r,)