Skip to content

Commit

Permalink
Drop the log buffer
Browse files Browse the repository at this point in the history
This does not appear to be used by any boards. Before introducing a new
log system, remove this old one.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Dec 7, 2017
1 parent 0ad0458 commit c5404b6
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 436 deletions.
1 change: 0 additions & 1 deletion cmd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ obj-$(CONFIG_LED_STATUS_CMD) += legacy_led.o
obj-$(CONFIG_CMD_LED) += led.o
obj-$(CONFIG_CMD_LICENSE) += license.o
obj-y += load.o
obj-$(CONFIG_LOGBUFFER) += log.o
obj-$(CONFIG_ID_EEPROM) += mac.o
obj-$(CONFIG_CMD_MD5SUM) += md5sum.o
obj-$(CONFIG_CMD_MEMORY) += mem.o
Expand Down
313 changes: 0 additions & 313 deletions cmd/log.c

This file was deleted.

18 changes: 0 additions & 18 deletions common/board_f.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <i2c.h>
#include <initcall.h>
#include <init_helpers.h>
#include <logbuff.h>
#include <malloc.h>
#include <mapmem.h>
#include <os.h>
Expand Down Expand Up @@ -296,20 +295,6 @@ static int setup_dest_addr(void)
return 0;
}

#if defined(CONFIG_LOGBUFFER)
static int reserve_logbuffer(void)
{
#ifndef CONFIG_ALT_LB_ADDR
/* reserve kernel log buffer */
gd->relocaddr -= LOGBUFF_RESERVE;
debug("Reserving %dk for kernel logbuffer at %08lx\n", LOGBUFF_LEN,
gd->relocaddr);
#endif

return 0;
}
#endif

#ifdef CONFIG_PRAM
/* reserve protected RAM */
static int reserve_pram(void)
Expand Down Expand Up @@ -846,9 +831,6 @@ static const init_fnc_t init_sequence_f[] = {
* - board info struct
*/
setup_dest_addr,
#if defined(CONFIG_LOGBUFFER)
reserve_logbuffer,
#endif
#ifdef CONFIG_PRAM
reserve_pram,
#endif
Expand Down
Loading

0 comments on commit c5404b6

Please sign in to comment.