66f6b6b59f17d72c749f8d8b0b54b11e4d399e28
[openwrt/openwrt.git] / package / boot / uboot-omap / patches / 102-minify-spl.patch
1 Index: u-boot-2017.01/configs/omap3_beagle_defconfig
2 ===================================================================
3 --- u-boot-2017.01.orig/configs/omap3_beagle_defconfig
4 +++ u-boot-2017.01/configs/omap3_beagle_defconfig
5 @@ -7,7 +7,7 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
6 CONFIG_VERSION_VARIABLE=y
7 CONFIG_SPL=y
8 CONFIG_SPL_MTD_SUPPORT=y
9 -CONFIG_SPL_OS_BOOT=y
10 +# CONFIG_SPL_EXT_SUPPORT is not set
11 # CONFIG_CMD_IMLS is not set
12 CONFIG_CMD_ASKENV=y
13 # CONFIG_CMD_FLASH is not set
14 Index: u-boot-2017.01/common/Makefile
15 ===================================================================
16 --- u-boot-2017.01.orig/common/Makefile
17 +++ u-boot-2017.01/common/Makefile
18 @@ -174,8 +174,11 @@ obj-$(CONFIG_CMDLINE) += cli_simple.o
19 obj-y += cli.o
20 obj-$(CONFIG_CMDLINE) += cli_readline.o
21 obj-$(CONFIG_CMD_DFU) += dfu.o
22 +
23 +ifndef CONFIG_SPL_BUILD
24 obj-y += command.o
25 obj-y += s_record.o
26 obj-y += xyzModem.o
27 +endif
28
29 CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)
30 Index: u-boot-2017.01/cmd/Makefile
31 ===================================================================
32 --- u-boot-2017.01.orig/cmd/Makefile
33 +++ u-boot-2017.01/cmd/Makefile
34 @@ -161,7 +161,10 @@ endif # !CONFIG_SPL_BUILD
35
36 obj-$(CONFIG_CMD_BLOB) += blob.o
37
38 +
39 +# ifndef CONFIG_SPL_BUILD
40 # core command
41 obj-y += nvedit.o
42 +# endif # !CONFIG_SPL_BUILD
43
44 obj-$(CONFIG_ARCH_MVEBU) += mvebu/