diff options
author | John Klug <john.klug@multitech.com> | 2017-05-12 16:07:52 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-05-12 16:07:52 -0500 |
commit | f9e9a86126118d6a038a797bd22e008ed1ab9f9c (patch) | |
tree | 8b339434c0bffd654e6b66243de9e48c10f17370 /configure.in | |
parent | 9c154405c2d01648f41c6a72bcc96f9865c4f07c (diff) | |
download | u-boot-linux-utils-f9e9a86126118d6a038a797bd22e008ed1ab9f9c.tar.gz u-boot-linux-utils-f9e9a86126118d6a038a797bd22e008ed1ab9f9c.tar.bz2 u-boot-linux-utils-f9e9a86126118d6a038a797bd22e008ed1ab9f9c.zip |
Get default parameters from U-Boot configuration.0.2.0
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 8fdc9ef..d023d38 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ AC_INIT([src/u_boot.c]) -AM_INIT_AUTOMAKE([u-boot], [0.0.1]) +AM_INIT_AUTOMAKE([u-boot], [0.0.2]) AM_CONFIG_HEADER([config.h]) AC_PROG_CC @@ -18,9 +18,12 @@ AC_CHECK_LIB([z], [crc32], [], AC_MSG_ERROR([libz is required])) AC_DEFINE([DEBUG], 0, [set to 1 to enable debug]) AC_DEFINE([MTD_ENV1], "/dev/mtd3", [set to the first u-boot env mtd]) AC_DEFINE([MTD_ENV2], "/dev/mtd4", [set to the second (redundant) u-boot env mtd]) -AC_DEFINE([MTD_SIZE], 0x20000, [size of u-boot env mtd]) -AC_DEFINE([DEFAULT_ENV], ["bootargs=mem=64M console=ttyS0,115200 root=/dev/mtdblock8 ro rootfstype=jffs2\0" "bootcmd=nboot.jffs2 ${loadaddr} 0 ${kernel_addr}; bootm ${loadaddr}\0" "bootdelay=3\0" "baudrate=115200\0" "ethaddr=00:D0:A0:02:0D:E1\0" "ipaddr=192.168.2.1\0" "serverip=192.168.2.2\0" "netmask=255.255.255.0\0" "hostname=AT91SAM9G20\0" "loadaddr=0x21400000\0" "kernel_addr=0x000A0000\0" "\0"] -, [default env if corrupt]) + +AC_DEFINE([MAC_PATH],["/sys/devices/platform/mts-io/mac-eth"], [MAC_PATH for defining ethaddr= in boot environment]) + +AC_DEFINE_UNQUOTED([DEFAULT_ENV], + [$(cat ../DEFAULT_ENV.cfg | tr -d '\n')], + [default environment values]) AC_OUTPUT([Makefile src/Makefile]) |