aboutsummaryrefslogtreecommitdiffstats
path: root/include/verbose.mk
blob: 34568a31f821f3c8c3b470240ca82971cfcc4511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id:$

ifeq ($(NO_TRACE_MAKE),)
NO_TRACE_MAKE := $(MAKE) V=99
export NO_TRACE_MAKE
endif

ifndef KBUILD_VERBOSE
  KBUILD_VERBOSE:=0
endif
ifeq ("$(origin V)", "command line")
  KBUILD_VERBOSE:=$(V)
endif

ifneq ($(shell tty -s <&3 || echo x),x)
  _Y:="\\33[33m"# yellow
  _N:="\\33[m"#	normal
endif

ifneq ($(KBUILD_VERBOSE),99)
  ifeq ($(QUIET),1)
    $(MAKECMDGOALS): trace
    trace: FORCE
	@[ -f "$(MAKECMDGOALS)" ] || { \
		[ -z "$${PWD##$$TOPDIR}" ] || DIR=" -C $${PWD##$$TOPDIR/}"; \
		echo -e "$(_Y)make[$$(($(MAKELEVEL)+1))]$$DIR $(MAKECMDGOALS)$(_N)" >&3; \
	}
  else
    export QUIET:=1
    ifeq ($(KBUILD_VERBOSE),0)
      MAKE:=&>/dev/null $(MAKE)
    endif
    MAKE:=cmd() { $(MAKE) $$* || {  echo "Build failed. Please re-run make with V=99 to see what's going on"; false; } } 3>&1 4>&2; cmd
  endif

  .SILENT: $(MAKECMDGOALS)
endif
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. * * Arun Sharma <arun.sharma@intel.com> * Xuefei Xu (Anthony Xu) (Anthony.xu@intel.com) */ #include <asm/asmmacro.h> .text /* * extern UINT64 ia64_call_vsa(UINT64 proc,UINT64 arg1, UINT64 arg2, * UINT64 arg3, UINT64 arg4, UINT64 arg5, * UINT64 arg6, UINT64 arg7); * * XXX: The currently defined services use only 4 args at the max. The * rest are not consumed. */ GLOBAL_ENTRY(ia64_call_vsa) .regstk 4,4,0,0 rpsave = loc0 pfssave = loc1 psrsave = loc2 entry = loc3 hostret = r24 alloc pfssave=ar.pfs,4,4,0,0 mov rpsave=rp movl entry=@gprel(__vsa_base) 1: mov hostret=ip mov r25=in1 // copy arguments mov r26=in2 mov r27=in3 mov psrsave=psr ;; add entry=entry,gp tbit.nz p6,p0=psrsave,14 // IA64_PSR_I tbit.nz p7,p0=psrsave,13 // IA64_PSR_IC ;; ld8 entry=[entry] // read entry point ;; add hostret=2f-1b,hostret // calculate return address add entry=entry,in0 ;; rsm psr.i | psr.ic ;; srlz.d mov b6=entry br.cond.sptk b6 // call the service 2: // Architectural sequence for enabling interrupts if necessary (p7) ssm psr.ic ;; (p7) srlz.d ;; (p6) ssm psr.i ;; mov rp=rpsave mov ar.pfs=pfssave mov r8=r31 ;; srlz.d br.ret.sptk rp END(ia64_call_vsa)