Changeset eb522e8 in mainline for tools/check.sh
- Timestamp:
- 2011-06-01T08:43:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6c1f1
- Parents:
- 9e2e715 (diff), e51a514 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
tools/check.sh
-
Property mode
changed from
100644
to100755
r9e2e715 reb522e8 1 #! /bin/bash 2 1 3 # 2 # Copyright (c) 2010 Martin Decky4 # Copyright (c) 2010 Jakub Jermar 3 5 # All rights reserved. 4 6 # … … 27 29 # 28 30 29 USPACE_PREFIX = ../../.. 30 ROOT_PATH = $(USPACE_PREFIX)/.. 31 if [ $1" " == "-h " ]; 32 then 33 echo "Perform pre-integration hands-off build of all profiles." 34 echo 35 echo "Syntax:" 36 echo " $0 [-h] [args...]" 37 echo 38 echo " -h Print this help." 39 echo " args... All other args are passed to make (e.g. -j 6)" 40 echo 31 41 32 COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common 33 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config 42 exit 43 fi 34 44 35 -include $(COMMON_MAKEFILE) 36 -include $(CONFIG_MAKEFILE) 45 FAILED="" 46 PASSED="" 47 PROFILES="" 48 DIRS=`find defaults/ -name Makefile.config | sed 's/^defaults\/\(.*\)\/Makefile.config/\1/' | sort` 37 49 38 ifeq ($(CONFIG_NETIF_NIL_BUNDLE),y) 39 LO_SOURCE = lo.netif_nil_bundle 40 NE2K_SOURCE = ne2k.netif_nil_bundle 41 else 42 LO_SOURCE = lo.netif_standalone 43 NE2K_SOURCE = ne2k.netif_standalone 44 endif 50 for D in $DIRS; 51 do 52 for H in $DIRS; 53 do 54 if [ `echo $H | grep "^$D\/.*"`x != "x" ]; 55 then 56 continue 2 57 fi 58 done 59 PROFILES="$PROFILES $D" 60 done 45 61 46 LO_TARGET = lo 47 NE2K_TARGET = ne2k 62 echo ">>> Going to build the following profiles:" 63 echo $PROFILES 48 64 49 .PHONY: all clean 65 for P in $PROFILES; 66 do 67 echo -n ">>>> Building $P... " 68 ( make distclean && make PROFILE=$P HANDS_OFF=y $1 ) >>/dev/null 2>>/dev/null 69 if [ $? -ne 0 ]; 70 then 71 FAILED="$FAILED $P" 72 echo "failed." 73 else 74 PASSED="$PASSED $P" 75 echo "ok." 76 fi 77 done 50 78 51 all: $(LO_TARGET) $(NE2K_TARGET) 79 echo ">>> Done." 80 echo 52 81 53 clean: 54 rm -f $(LO_TARGET) $(NE2K_TARGET) 82 echo ">>> The following profiles passed:" 83 echo $PASSED 84 echo 55 85 56 $(LO_TARGET): $(LO_SOURCE) 57 cp $< $@ 86 echo ">>> The following profiles failed:" 87 echo $FAILED 88 echo 58 89 59 $(NE2K_TARGET): $(NE2K_SOURCE)60 cp $< $@ -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.