~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/powerpc/platforms/cell/spufs/Makefile

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: GPL-2.0
  2 
  3 obj-$(CONFIG_SPU_FS) += spufs.o
  4 spufs-y += inode.o file.o context.o syscalls.o
  5 spufs-y += sched.o backing_ops.o hw_ops.o run.o gang.o
  6 spufs-y += switch.o fault.o lscsa_alloc.o
  7 spufs-$(CONFIG_COREDUMP) += coredump.o
  8 
  9 # magic for the trace events
 10 CFLAGS_sched.o := -I$(src)
 11 
 12 # Rules to build switch.o with the help of SPU tool chain
 13 SPU_CROSS       := spu-
 14 SPU_CC          := $(SPU_CROSS)gcc
 15 SPU_AS          := $(SPU_CROSS)gcc
 16 SPU_LD          := $(SPU_CROSS)ld
 17 SPU_OBJCOPY     := $(SPU_CROSS)objcopy
 18 SPU_CFLAGS      := -O2 -Wall -I$(srctree)/include -D__KERNEL__
 19 SPU_AFLAGS      := -c -D__ASSEMBLY__ -I$(srctree)/include -D__KERNEL__
 20 SPU_LDFLAGS     := -N -Ttext=0x0
 21 
 22 $(obj)/switch.o: $(obj)/spu_save_dump.h $(obj)/spu_restore_dump.h
 23 clean-files := spu_save_dump.h spu_restore_dump.h
 24 
 25 # Compile SPU files
 26       cmd_spu_cc = $(SPU_CC) $(SPU_CFLAGS) -c -o $@ $<
 27 quiet_cmd_spu_cc = SPU_CC  $@
 28 $(obj)/spu_%.o: $(src)/spu_%.c
 29         $(call if_changed,spu_cc)
 30 
 31 # Assemble SPU files
 32       cmd_spu_as = $(SPU_AS) $(SPU_AFLAGS) -o $@ $<
 33 quiet_cmd_spu_as = SPU_AS  $@
 34 $(obj)/spu_%.o: $(src)/spu_%.S
 35         $(call if_changed,spu_as)
 36 
 37 # Link SPU Executables
 38       cmd_spu_ld = $(SPU_LD) $(SPU_LDFLAGS) -o $@ $^
 39 quiet_cmd_spu_ld = SPU_LD  $@
 40 $(obj)/spu_%: $(obj)/spu_%_crt0.o $(obj)/spu_%.o
 41         $(call if_changed,spu_ld)
 42 
 43 # Copy into binary format
 44       cmd_spu_objcopy = $(SPU_OBJCOPY) -O binary $< $@
 45 quiet_cmd_spu_objcopy = OBJCOPY $@
 46 $(obj)/spu_%.bin: $(src)/spu_%
 47         $(call if_changed,spu_objcopy)
 48 
 49 # create C code from ELF executable
 50 cmd_hexdump   = ( \
 51                 echo "/*" ; \
 52                 echo " * $*_dump.h: Copyright (C) 2005 IBM." ; \
 53                 echo " * Hex-dump auto generated from $*.c." ; \
 54                 echo " * Do not edit!" ; \
 55                 echo " */" ; \
 56                 echo "static unsigned int $*_code[] " \
 57                         "__attribute__((__aligned__(128))) = {" ; \
 58                 hexdump -v -e '"0x" 4/1 "%02x" "," "\n"' $< ; \
 59                 echo "};" ; \
 60                 ) > $@
 61 quiet_cmd_hexdump = HEXDUMP $@
 62 $(obj)/%_dump.h: $(obj)/%.bin
 63         $(call if_changed,hexdump)

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php