0023-MIPS-lantiq-add-default-openwrt-config.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. From 8f584936adad0fca8beece5f55eadcdcd02fad0a Mon Sep 17 00:00:00 2001
  2. From: Luka Perkov <luka@openwrt.org>
  3. Date: Sat, 17 Aug 2013 03:44:46 +0200
  4. Subject: MIPS: lantiq: add default openwrt config
  5. Signed-off-by: Luka Perkov <luka@openwrt.org>
  6. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
  7. --- /dev/null
  8. +++ b/include/configs/openwrt-lantiq-common.h
  9. @@ -0,0 +1,39 @@
  10. +/*
  11. + * Copyright (C) 2013 Luka Perkov <luka@openwrt.org>
  12. + *
  13. + * SPDX-License-Identifier: GPL-2.0+
  14. + */
  15. +
  16. +#ifndef __OPENWRT_LANTIQ_COMMON_H
  17. +#define __OPENWRT_LANTIQ_COMMON_H
  18. +
  19. +/* Commands */
  20. +#if defined(CONFIG_LTQ_SUPPORT_ETHERNET)
  21. +#define CONFIG_CMD_PING
  22. +#endif
  23. +
  24. +/* Compression */
  25. +#define CONFIG_LZMA
  26. +
  27. +/* Auto boot */
  28. +#define CONFIG_BOOTDELAY 2
  29. +
  30. +/* Environment */
  31. +#if !defined(CONFIG_SYS_BOOT_RAM)
  32. +#define CONFIG_BOOTCOMMAND \
  33. + "bootm ${kernel_addr}"
  34. +#endif
  35. +
  36. +/* Ethernet */
  37. +#if defined(CONFIG_LTQ_SUPPORT_ETHERNET)
  38. +#define CONFIG_ETHADDR 00:01:02:03:04:05
  39. +#define CONFIG_SERVERIP 192.168.1.2
  40. +#define CONFIG_IPADDR 192.168.1.1
  41. +#endif
  42. +
  43. +/* Unnecessary */
  44. +#undef CONFIG_BOOTM_NETBSD
  45. +#undef CONFIG_BOOTM_PLAN9
  46. +#undef CONFIG_BOOTM_RTEMS
  47. +
  48. +#endif /* __OPENWRT_LANTIQ_COMMON_H */