Files
chipsec-chipsec/source/tool/drivers/linux/Makefile
T
abazhaniuk ffc74a766d setup.py supports driver in linux version of CHIPSEC (#80)
* fix path error in chipsec_util after install chipsec on the linux system

* Refactored setup.py for use setuptools. Small changes in chipsec_util/chipsec_main for it

* cleanup

* 1) Moved directory drivers from chipsec/source/drivers to chipsec/source/tool
It's necessary for packing driver source code into python package by setup.py
2) In setup.py for Linux version of CHIPSEC:
  1. Add driver to the package
  2. Add option full_build for build and install CHIPSEC with driver
2016-09-06 21:41:42 -07:00

40 lines
835 B
Makefile

KERNEL_SRC_DIR = /lib/modules/`uname -r`/build
##KERNEL_SRC_DIR = /usr/src/android/3.0-mid
EXTRA_CFLAGS =
VERSION=
#obj-m += chipsec.o
ifeq ($(ARCH),i386)
obj-m += chipsec.o
chipsec-objs := chipsec_km.o i386/cpu.o
all: clean chipsec32
else
obj-m += chipsec.o
chipsec-objs := chipsec_km.o amd64/cpu.o
all: clean chipsec64
endif
chipsec64: clean
nasm -f elf64 -o amd64/cpu.o amd64/cpu.asm;
make -C $(KERNEL_SRC_DIR) SUBDIRS=`pwd` modules
make -C ../../chipsec/helper/linux/
chipsec32: clean
nasm -f elf32 -o i386/cpu.o i386/cpu.asm;
make -C $(KERNEL_SRC_DIR) SUBDIRS=`pwd` modules
make -C ../../chipsec/helper/linux/
install:
./run.sh
uninstall:
rmmod chipsec
clean:
rm -f *.o *.ko *.mod.c Module.symvers Module.markers modules.order \.*.o.cmd \.*.ko.cmd \.*.o.d
rm -rf \.tmp_versions
rm -rf amd64/cpu.o i386/cpu.o