From 62540ef4377e82f14acc4a7c4604e02b5ee150c6 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Mon, 29 Aug 2016 00:39:37 +0200 Subject: [PATCH] Remove some features to make image for DIR-505 fit in 64 KB --- u-boot/include/configs/ap121.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/u-boot/include/configs/ap121.h b/u-boot/include/configs/ap121.h index ef45c0c..56bf896 100644 --- a/u-boot/include/configs/ap121.h +++ b/u-boot/include/configs/ap121.h @@ -348,6 +348,19 @@ #define CFG_PROMPT "BSB> " #endif +/* D-Link DIR-505 is limited to 64 KB only and doesn't use env */ +#if defined(CONFIG_FOR_DLINK_DIR505_A1) + #define CFG_ENV_IS_NOWHERE 1 + #undef CFG_ENV_IS_IN_FLASH + #undef CONFIG_CMD_DHCP + #undef CONFIG_CMD_SNTP + #undef CONFIG_CMD_IMI + #undef CONFIG_CMD_ENV + #undef CONFIG_CMD_LOADB + #undef CONFIG_CMD_BUTTON + #undef CONFIG_CMD_SLEEP +#endif + /* * =========================== * HTTP recovery configuration -- 2.25.1