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 (857B)


      1# SPDX-License-Identifier: GPL-2.0
      2#
      3# Makefile for some libs needed by zImage.
      4#
      5
      6zlib	:= inffast.c inflate.c inftrees.c
      7
      8lib-y	+= $(zlib:.c=.o) zmem.o
      9
     10ccflags-y	:= -I $(srctree)/lib/zlib_inflate
     11ifdef CONFIG_FUNCTION_TRACER
     12CFLAGS_REMOVE_inflate.o = -pg
     13CFLAGS_REMOVE_zmem.o = -pg
     14CFLAGS_REMOVE_inftrees.o = -pg
     15CFLAGS_REMOVE_inffast.o = -pg
     16endif
     17
     18KASAN_SANITIZE := n
     19KCSAN_SANITIZE := n
     20
     21CFLAGS_REMOVE_inflate.o += -fstack-protector -fstack-protector-strong
     22CFLAGS_REMOVE_zmem.o += -fstack-protector -fstack-protector-strong
     23CFLAGS_REMOVE_inftrees.o += -fstack-protector -fstack-protector-strong
     24CFLAGS_REMOVE_inffast.o += -fstack-protector -fstack-protector-strong
     25
     26quiet_cmd_copy_zlib = COPY    $@
     27      cmd_copy_zlib = cat $< > $@
     28
     29$(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
     30	$(call cmd,copy_zlib)
     31
     32clean-files	:= $(zlib)