]> git.sur5r.net Git - u-boot/blobdiff - board/RPXClassic/RPXClassic.c
pxe: allow compilation when !defined(CONFIG_CMD_NET)
[u-boot] / board / RPXClassic / RPXClassic.c
index 5aa713fa0be4bb4a650d27e982e9d4e569933b50..15b7232fd7bc54a5cc0318197f4e99feda152b10 100644 (file)
@@ -1,35 +1,20 @@
 /*
  * (C) Copyright 2001
- * Stäubli Faverges - <www.staubli.com>
+ * Stäubli Faverges - <www.staubli.com>
  * Pierre AUBERT  p.aubert@staubli.com
  * U-Boot port on RPXClassic LF (CLLF_BW31) board
  *
  * (C) Copyright 2000
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <i2c.h>
 #include <config.h>
 #include <mpc8xx.h>
+#include <net.h>
 
 /* ------------------------------------------------------------------------- */
 
@@ -151,7 +136,7 @@ int misc_init_r(void)
 
        if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
                board_get_enetaddr(enetaddr);
-               eth_putenv_enetaddr("ethaddr", enetaddr);
+               eth_setenv_enetaddr("ethaddr", enetaddr);
        }
 
        return 0;