cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

Makefile (992B)


      1# SPDX-License-Identifier: GPL-2.0
      2kapi := arch/$(SRCARCH)/include/generated/asm
      3uapi := arch/$(SRCARCH)/include/generated/uapi/asm
      4
      5$(shell mkdir -p $(uapi) $(kapi))
      6
      7syscall := $(src)/syscall.tbl
      8syshdr := $(srctree)/scripts/syscallhdr.sh
      9systbl := $(srctree)/scripts/syscalltbl.sh
     10
     11quiet_cmd_syshdr = SYSHDR  $@
     12      cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis common,$* $< $@
     13
     14quiet_cmd_systbl = SYSTBL  $@
     15      cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis common,$* $< $@
     16
     17$(uapi)/unistd_%.h: $(syscall) $(syshdr) FORCE
     18	$(call if_changed,syshdr)
     19
     20$(kapi)/syscall_table_%.h: $(syscall) $(systbl) FORCE
     21	$(call if_changed,systbl)
     22
     23uapisyshdr-y		+= unistd_32.h unistd_64.h
     24kapisyshdr-y		+= syscall_table_32.h		\
     25			   syscall_table_64.h
     26
     27uapisyshdr-y	:= $(addprefix $(uapi)/, $(uapisyshdr-y))
     28kapisyshdr-y	:= $(addprefix $(kapi)/, $(kapisyshdr-y))
     29targets		+= $(addprefix ../../../../, $(uapisyshdr-y) $(kapisyshdr-y))
     30
     31PHONY += all
     32all: $(uapisyshdr-y) $(kapisyshdr-y)
     33	@: