1# 2# Toplevel Makefile for the BCM947xx Linux Router release 3# 4# Copyright (C) 2010, Broadcom Corporation. All Rights Reserved. 5# 6# Permission to use, copy, modify, and/or distribute this software for any 7# purpose with or without fee is hereby granted, provided that the above 8# copyright notice and this permission notice appear in all copies. 9# 10# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 13# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 15# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 16# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17# 18# $Id: toplevel-release.mk,v 1.43 2010/09/15 04:30:57 Exp $ 19# 20 21SRCBASE := $(shell pwd) 22RELEASEDIR := $(shell (cd $(SRCBASE)/.. && pwd -P)) 23 24install: all 25 install -d $(RELEASEDIR)/image 26 $(MAKE) -C router install 27 #-cp router/mipsel/linux.trx $(RELEASEDIR)/image/linux-glibc.trx 28 #-cp router/mipsel-uclibc/linux.trx $(RELEASEDIR)/image/linux.trx 29 -cp router/mipsel-uclibc/linux-lzma.trx $(RELEASEDIR)/image/linux-lzma.trx 30 -cp router/mipsel-uclibc/linux.bin $(RELEASEDIR)/image/linux.bin 31 #-cp dongle/rte/wl/builds/4322-bmac-usbap/roml-ag-nodis/rtecdc.exe $(RELEASEDIR)/image/rtecdc-4323.exe 32 #-cp dongle/rte/wl/builds/43236-bmac-usbap/roml-ag-nodis/rtecdc.exe $(RELEASEDIR)/image/rtecdc-43236.exe 33ifneq ($(wildcard cfe),) 34 cp cfe/build/broadcom/bcm947xx/cfe.bin $(RELEASEDIR)/image/ 35 cp cfe/build/broadcom/bcm947xx/compressed/cfez.bin $(RELEASEDIR)/image/ 36 # Clean and make one more time linked at 3MB 37 $(MAKE) -C cfe clean 38 $(MAKE) -C cfe CFG_TEXT_START=0x80300000 39 cp cfe/build/broadcom/bcm947xx/cfe.bin $(RELEASEDIR)/image/cfe4.bin 40 cp cfe/build/broadcom/bcm947xx/compressed/cfez.bin $(RELEASEDIR)/image/cfez4.bin 41 # Clean and make one more time with GigE 42 $(MAKE) -C cfe clean 43 $(MAKE) -C cfe CFG_PCI=1 44 cp cfe/build/broadcom/bcm947xx/cfe.bin $(RELEASEDIR)/image/cfe-gige.bin 45 cp cfe/build/broadcom/bcm947xx/compressed/cfez.bin $(RELEASEDIR)/image/cfez-gige.bin 46 # Clean and make one more time with GMAC 47 $(MAKE) -C cfe clean 48 $(MAKE) -C cfe CFG_GMAC=1 49 cp cfe/build/broadcom/bcm947xx/cfe.bin $(RELEASEDIR)/image/cfe-gmac.bin 50 cp cfe/build/broadcom/bcm947xx/compressed/cfez.bin $(RELEASEDIR)/image/cfez-gmac.bin 51 cp cfe/build/chipimages/bcm5357/cfe_script.cfesh $(RELEASEDIR)/image/ 52 # Clean and make one more time with NFLASH 53 $(MAKE) -C cfe clean 54 $(MAKE) -C cfe CFG_GMAC=1 CFG_NFLASH=1 55 cp cfe/build/broadcom/bcm947xx/cfe.bin $(RELEASEDIR)/image/cfe-nflash.bin 56 cp cfe/build/broadcom/bcm947xx/compressed/cfez.bin $(RELEASEDIR)/image/cfez-nflash.bin 57endif 58 cp shared/nvram/*.txt $(RELEASEDIR)/image/ 59 60all clean: 61 $(MAKE) -C router $@ 62ifneq ($(wildcard cfe),) 63 $(MAKE) -C cfe $@ 64endif 65 66.PHONY: all clean install 67