Compare commits
22 Commits
project
...
unfinished
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ad08b638d | ||
|
|
b861610c8e | ||
|
|
b752b7defc | ||
|
|
15909858f1 | ||
|
|
76044328ea | ||
|
|
c712dc57b5 | ||
|
|
1f5d2f3d3e | ||
|
|
7f186888bd | ||
|
|
417a34fd75 | ||
|
|
14c84c4904 | ||
|
|
01758e374a | ||
|
|
feafd1e7d0 | ||
|
|
02a3257c32 | ||
|
|
d478312a13 | ||
|
|
308695e9df | ||
|
|
596bcfad22 | ||
|
|
b1cad51075 | ||
|
|
bf30fd35af | ||
|
|
f60778421c | ||
|
|
b5a1cd4e25 | ||
|
|
dca676ec38 | ||
|
|
3c1a29ca11 |
@@ -1,29 +0,0 @@
|
|||||||
# Makefile
|
|
||||||
CC=gcc
|
|
||||||
CFLAGS = -W -Wall -pedantic -g -std=gnu99 -c
|
|
||||||
LDFLAGS = -static
|
|
||||||
RM = rm -f
|
|
||||||
|
|
||||||
TARGET = motor
|
|
||||||
OBJECTS = gpio.o
|
|
||||||
HEADERS = $(OBJECTS:.o=.h)
|
|
||||||
SOURCES = $(TARGET).c $(OBJECTS:.o=.c)
|
|
||||||
|
|
||||||
%.o: %.c
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
.PHONY: all clean
|
|
||||||
|
|
||||||
all: $(TARGET)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(RM) $(TARGET) $(TARGET).o $(OBJECTS) depend
|
|
||||||
|
|
||||||
depend: $(SOURCES) $(HEADERS)
|
|
||||||
$(CC) $(CPPFLAGS) -MM $(SOURCES) > $@
|
|
||||||
|
|
||||||
$(TARGET): $(TARGET).o $(OBJECTS)
|
|
||||||
$(CC) $(LDFLAGS) $^ -o $@
|
|
||||||
$(RM) depend $(TARGET).o $(OBJECTS)
|
|
||||||
|
|
||||||
include depend
|
|
||||||
156
project/building.sh
Executable file
156
project/building.sh
Executable file
@@ -0,0 +1,156 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# DEBUG
|
||||||
|
if [ ! -z "$DEBUG" ]; then
|
||||||
|
echo "DEBUG is set"
|
||||||
|
set -o xtrace
|
||||||
|
fi
|
||||||
|
|
||||||
|
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
|
||||||
|
|
||||||
|
# shellcheck source=HW5/config.sh
|
||||||
|
source "${SCRIPT_DIR}/config.sh"
|
||||||
|
|
||||||
|
function download() {
|
||||||
|
local -r url="${1}"
|
||||||
|
local -r sha256="${2}"
|
||||||
|
|
||||||
|
if which nix-prefetch-url >/dev/null 2>&1; then
|
||||||
|
nix-prefetch-url --print-path --type sha256 "${url}" "${sha256}" | tail -n 1
|
||||||
|
else
|
||||||
|
local -r tmpdir="$(mktemp -d)"
|
||||||
|
cd "${tmpdir}" && local -r filename="$(curl "${url}" --remote-name -w "%{filename_effective}")"
|
||||||
|
echo "${tmpdir}/${filename}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function download_extract() {
|
||||||
|
local -r url="${1}"
|
||||||
|
local -r sha256="${2}"
|
||||||
|
local -r path="${3}"
|
||||||
|
|
||||||
|
echo "Downloading '${url}'..."
|
||||||
|
local -r archive="$(download "${url}" "${sha256}")"
|
||||||
|
|
||||||
|
if [ -z "$sha256" ]; then
|
||||||
|
echo "Verify checksum of '${archive}'..."
|
||||||
|
if [ "$(sha256sum "${archive}" | cut -d' ' -f1)" != "${sha256}" ]; then
|
||||||
|
echo 'Error: Invalid checksum!'
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Extracting '${archive}'..."
|
||||||
|
tar -xf "${archive}" -C "${path}" || return $?
|
||||||
|
}
|
||||||
|
|
||||||
|
function download_extract_all() {
|
||||||
|
download_extract "${KERNEL_URL}" "${KERNEL_SHA256}" "${KERNEL_PATH}" || return $?
|
||||||
|
}
|
||||||
|
|
||||||
|
function cpu_count() {
|
||||||
|
if [ -f /proc/cpuinfo ]; then
|
||||||
|
grep -c ^processor /proc/cpuinfo
|
||||||
|
else
|
||||||
|
if which sysctl >/dev/null 2>&1; then
|
||||||
|
sysctl hw.ncpu | cut -d ' ' -f 2
|
||||||
|
else
|
||||||
|
echo '4'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# compile kernel
|
||||||
|
function compile_kernel() {
|
||||||
|
ln -sf "${KERNEL_CONFIG_PATH}" "${KERNEL_SOURCE_PATH}/.config"
|
||||||
|
echo "Compile kernel..."
|
||||||
|
time ARCH="$KERNEL_ARCH" make -C "${KERNEL_SOURCE_PATH}" -j "$(cpu_count)" || return $?
|
||||||
|
echo "Copy kernel..."
|
||||||
|
cp -pf "${KERNEL_IMAGE}" "${ARTIFACTS_PATH}/"
|
||||||
|
}
|
||||||
|
|
||||||
|
function find_modules() {
|
||||||
|
find "$MODULES_DIR" -mindepth 1 -maxdepth 1 -type d -not -name '_*' -print0
|
||||||
|
}
|
||||||
|
|
||||||
|
function compile_module() {
|
||||||
|
local -r module_dir="$1"
|
||||||
|
local -r module="$(basename "$module_dir")"
|
||||||
|
local -r module_test_src="${module_dir}/${module}.test.c"
|
||||||
|
|
||||||
|
echo "Compile kernel module '$module'..."
|
||||||
|
time KVER="$KERNEL_VERSION" make -C "${module_dir}" -j "$(cpu_count)" || return $?
|
||||||
|
|
||||||
|
if [ -f "${module_test_src}" ]; then
|
||||||
|
time make -C "${module_dir}" -j "$(cpu_count)" test || return $?
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Copy kernel module '$module'..."
|
||||||
|
cp -pf "${module_dir}/${module}.ko" "$MODULES_DST_DIR/"
|
||||||
|
cp -pf "${module_dir}/${module}.ko.test" "$MODULES_DST_DIR/"
|
||||||
|
|
||||||
|
if [ -f "${module_test_src}" ]; then
|
||||||
|
build_binary "${module_dir}/${module}.ko.test" "$(basename "$MODULES_DST_DIR")/" || return $?
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function modules_compile() {
|
||||||
|
mkdir -p "$MODULES_DST_DIR"
|
||||||
|
|
||||||
|
while IFS= read -r -d '' module_dir; do
|
||||||
|
compile_module "$module_dir" || return $?
|
||||||
|
done < <(find_modules)
|
||||||
|
}
|
||||||
|
|
||||||
|
function compile() {
|
||||||
|
modules_compile || return $?
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_binary_linker() {
|
||||||
|
local -r binary="$1"
|
||||||
|
file "$binary" | grep -o -E ', interpreter (.*\.so(\.[0-9]+)?)' | cut -d' ' -f3
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# clean untracked git files
|
||||||
|
function clean() {
|
||||||
|
echo "Clean non git files..."
|
||||||
|
cd "${SCRIPT_DIR}" && git clean -dfx || return $?
|
||||||
|
}
|
||||||
|
|
||||||
|
function main() {
|
||||||
|
local -r cmd="${1:-all}"
|
||||||
|
shift 1
|
||||||
|
|
||||||
|
case "$cmd" in
|
||||||
|
all )
|
||||||
|
download_extract_all &&
|
||||||
|
compile ;;
|
||||||
|
|
||||||
|
download )
|
||||||
|
download_extract_all ;;
|
||||||
|
|
||||||
|
compile )
|
||||||
|
compile ;;
|
||||||
|
|
||||||
|
modules )
|
||||||
|
modules_compile ;;
|
||||||
|
|
||||||
|
modules_build )
|
||||||
|
modules_compile ;;
|
||||||
|
|
||||||
|
modules_copy )
|
||||||
|
modules_copy ;;
|
||||||
|
|
||||||
|
clean )
|
||||||
|
clean ;;
|
||||||
|
|
||||||
|
* )
|
||||||
|
echo "Error: unkown command" &&
|
||||||
|
false ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
return $?
|
||||||
|
}
|
||||||
|
|
||||||
|
main "$@"
|
||||||
66
project/config.sh
Executable file
66
project/config.sh
Executable file
@@ -0,0 +1,66 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# DEBUG
|
||||||
|
if [ ! -z "$DEBUG" ]; then
|
||||||
|
echo "DEBUG is set"
|
||||||
|
set -o xtrace
|
||||||
|
fi
|
||||||
|
|
||||||
|
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
|
||||||
|
|
||||||
|
# compile options
|
||||||
|
export ARCH=aarch64
|
||||||
|
export KERNEL_ARCH=arm64
|
||||||
|
export CROSS_COMPILE=${ARCH}-linux-gnu-
|
||||||
|
|
||||||
|
# artifacts
|
||||||
|
export ARTIFACTS_PATH="${SCRIPT_DIR}/artifacts"
|
||||||
|
export SSH_KEY="${ARTIFACTS_PATH}/id_openssh"
|
||||||
|
|
||||||
|
# qemu options
|
||||||
|
export SSH_HOST=localhost
|
||||||
|
export SSH_PORT=$((22222 + $(id -u)))
|
||||||
|
|
||||||
|
# kernel modules
|
||||||
|
export MODULES_DIR="${SCRIPT_DIR}/modules"
|
||||||
|
export MODULES_DST_DIR="${ARTIFACTS_PATH}/modules"
|
||||||
|
|
||||||
|
# kernel
|
||||||
|
export KERNEL_VERSION='4.11'
|
||||||
|
export KERNEL_URL="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${KERNEL_VERSION}.tar.xz"
|
||||||
|
export KERNEL_SHA256='b67ecafd0a42b3383bf4d82f0850cbff92a7e72a215a6d02f42ddbafcf42a7d6'
|
||||||
|
export KERNEL_PATH="${SCRIPT_DIR}/kernel"
|
||||||
|
export KERNEL_CONFIG_PATH="${KERNEL_PATH}/config"
|
||||||
|
export KERNEL_SOURCE_PATH="${KERNEL_PATH}/linux-${KERNEL_VERSION}"
|
||||||
|
export KERNEL_IMAGE="${KERNEL_SOURCE_PATH}/arch/arm64/boot/Image"
|
||||||
|
|
||||||
|
# busybox
|
||||||
|
export BUSYBOX_VERSION='1.26.2'
|
||||||
|
export BUSYBOX_URL="https://busybox.net/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2"
|
||||||
|
export BUSYBOX_SHA256='da3e44913fc1a9c9b7c5337ea5292da518683cbff32be630777f565d6036af16'
|
||||||
|
export BUSYBOX_PATH="${SCRIPT_DIR}/busybox"
|
||||||
|
export BUSYBOX_CONFIG_PATH="${BUSYBOX_PATH}/config"
|
||||||
|
export BUSYBOX_SOURCE_PATH="${BUSYBOX_PATH}/busybox-${BUSYBOX_VERSION}"
|
||||||
|
export BUSYBOX_BIN="${BUSYBOX_SOURCE_PATH}/busybox"
|
||||||
|
|
||||||
|
# sysinfo
|
||||||
|
export SYSINFO_PATH="${SCRIPT_DIR}/sysinfo"
|
||||||
|
export SYSINFO_SOURCE_PATH="${SYSINFO_PATH}/src"
|
||||||
|
export SYSINFO_BIN="${SYSINFO_SOURCE_PATH}/sysinfo"
|
||||||
|
|
||||||
|
# dropbear
|
||||||
|
export DROPBEAR_VERSION='2016.74'
|
||||||
|
export DROPBEAR_URL="https://matt.ucc.asn.au/dropbear/releases/dropbear-${DROPBEAR_VERSION}.tar.bz2"
|
||||||
|
export DROPBEAR_SHA256='2720ea54ed009af812701bcc290a2a601d5c107d12993e5d92c0f5f81f718891'
|
||||||
|
export DROPBEAR_PATH="${SCRIPT_DIR}/dropbear"
|
||||||
|
export DROPBEAR_CONFIG_PATH="${DROPBEAR_PATH}/options.h"
|
||||||
|
export DROPBEAR_SOURCE_PATH="${DROPBEAR_PATH}/dropbear-${DROPBEAR_VERSION}"
|
||||||
|
export DROPBEAR_BIN="${DROPBEAR_SOURCE_PATH}/dropbearmulti"
|
||||||
|
|
||||||
|
# gesftpserver
|
||||||
|
export GESFTPSERVER_VERSION='0.2.2'
|
||||||
|
export GESFTPSERVER_URL="https://www.greenend.org.uk/rjk/sftpserver/sftpserver-${GESFTPSERVER_VERSION}.tar.gz"
|
||||||
|
export GESFTPSERVER_SHA256='8ac1938d0f62a05799b2aeab489d6ce098c3fe53280a9b66c0957b1fdcbcbab9'
|
||||||
|
export GESFTPSERVER_PATH="${SCRIPT_DIR}/gesftpserver"
|
||||||
|
export GESFTPSERVER_SOURCE_PATH="${GESFTPSERVER_PATH}/sftpserver-${GESFTPSERVER_VERSION}"
|
||||||
|
export GESFTPSERVER_BIN="${GESFTPSERVER_SOURCE_PATH}/gesftpserver"
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
#include<stdio.h>
|
|
||||||
#include<fcntl.h>
|
|
||||||
#include<string.h>
|
|
||||||
#include<unistd.h>
|
|
||||||
#include<string.h>
|
|
||||||
#include "gpio.h"
|
|
||||||
|
|
||||||
#define BASEPATH "/sys/class/gpio/"
|
|
||||||
#define GPIO_FOLDER "gpio%s/"
|
|
||||||
|
|
||||||
void writeFile(char *filename, char *buffer, size_t count)
|
|
||||||
{
|
|
||||||
int fd = open(filename, O_WRONLY);
|
|
||||||
if(fd == -1) {
|
|
||||||
perror("Fehler bei open ");
|
|
||||||
}
|
|
||||||
write(fd, buffer, count);
|
|
||||||
close(fd);
|
|
||||||
}
|
|
||||||
|
|
||||||
void registerPin(char *pin)
|
|
||||||
{
|
|
||||||
writeFile(BASEPATH "export", pin, strlen(pin));
|
|
||||||
}
|
|
||||||
|
|
||||||
void freePin(char *pin)
|
|
||||||
{
|
|
||||||
writeFile(BASEPATH "unexport", pin, strlen(pin));
|
|
||||||
}
|
|
||||||
|
|
||||||
void setDirection(char *pin, char *direction, int dirlen)
|
|
||||||
{
|
|
||||||
char path[50];
|
|
||||||
sprintf(path, BASEPATH GPIO_FOLDER "direction", pin);
|
|
||||||
writeFile(path, direction, dirlen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void registerOutput(char *pin)
|
|
||||||
{
|
|
||||||
registerPin(pin);
|
|
||||||
setDirection(pin, "out", 3);
|
|
||||||
}
|
|
||||||
|
|
||||||
void registerInput(char *pin)
|
|
||||||
{
|
|
||||||
registerPin(pin);
|
|
||||||
setDirection(pin, "in", 3);
|
|
||||||
}
|
|
||||||
|
|
||||||
void writeOutput(char *pin, int state)
|
|
||||||
{
|
|
||||||
char path[50];
|
|
||||||
sprintf(path, BASEPATH GPIO_FOLDER "value", pin);
|
|
||||||
FILE *fd = fopen(path, "w");
|
|
||||||
fprintf(fd, "%i", state);
|
|
||||||
fclose(fd);
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
#ifndef GPIO_H_
|
|
||||||
#define GPIO_H_
|
|
||||||
|
|
||||||
void writeFile(char *filename, char *buffer, size_t count);
|
|
||||||
void registerPin(char *pin);
|
|
||||||
void freePin(char *pin);
|
|
||||||
void setDirection(char *pin, char *direction, int dirlen);
|
|
||||||
void registerOutput(char *pin);
|
|
||||||
void registerInput(char *pin);
|
|
||||||
void writeOutput(char *pin, int state);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -0,0 +1,464 @@
|
|||||||
|
cmd_/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.mod.o := aarch64-linux-gnu-gcc -Wp,-MD,/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/.infrared_sensor_in_1.mod.o.d -nostdinc -isystem /nix/store/p6af8rfcdv8sfl8nqwgcz9c4lxr2n5n1-gcc-5.4.0-aarch64-linux-gnu-stage-final/lib/gcc/aarch64-linux-gnu/5.4.0/include -I./arch/arm64/include -I./arch/arm64/include/generated/uapi -I./arch/arm64/include/generated -I./include -I./arch/arm64/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mgeneral-regs-only -DCONFIG_AS_LSE=1 -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DKBUILD_BASENAME='"infrared_sensor_in_1.mod"' -DKBUILD_MODNAME='"infrared_sensor_in_1"' -DMODULE -mcmodel=large -c -o /home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.mod.o /home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.mod.c
|
||||||
|
|
||||||
|
source_/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.mod.o := /home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.mod.c
|
||||||
|
|
||||||
|
deps_/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.mod.o := \
|
||||||
|
$(wildcard include/config/module/unload.h) \
|
||||||
|
include/linux/module.h \
|
||||||
|
$(wildcard include/config/modules.h) \
|
||||||
|
$(wildcard include/config/sysfs.h) \
|
||||||
|
$(wildcard include/config/modules/tree/lookup.h) \
|
||||||
|
$(wildcard include/config/livepatch.h) \
|
||||||
|
$(wildcard include/config/unused/symbols.h) \
|
||||||
|
$(wildcard include/config/module/sig.h) \
|
||||||
|
$(wildcard include/config/generic/bug.h) \
|
||||||
|
$(wildcard include/config/kallsyms.h) \
|
||||||
|
$(wildcard include/config/smp.h) \
|
||||||
|
$(wildcard include/config/tracepoints.h) \
|
||||||
|
$(wildcard include/config/tracing.h) \
|
||||||
|
$(wildcard include/config/event/tracing.h) \
|
||||||
|
$(wildcard include/config/ftrace/mcount/record.h) \
|
||||||
|
$(wildcard include/config/constructors.h) \
|
||||||
|
$(wildcard include/config/strict/module/rwx.h) \
|
||||||
|
include/linux/list.h \
|
||||||
|
$(wildcard include/config/debug/list.h) \
|
||||||
|
include/linux/types.h \
|
||||||
|
$(wildcard include/config/have/uid16.h) \
|
||||||
|
$(wildcard include/config/uid16.h) \
|
||||||
|
$(wildcard include/config/lbdaf.h) \
|
||||||
|
$(wildcard include/config/arch/dma/addr/t/64bit.h) \
|
||||||
|
$(wildcard include/config/phys/addr/t/64bit.h) \
|
||||||
|
$(wildcard include/config/64bit.h) \
|
||||||
|
include/uapi/linux/types.h \
|
||||||
|
arch/arm64/include/generated/asm/types.h \
|
||||||
|
include/uapi/asm-generic/types.h \
|
||||||
|
include/asm-generic/int-ll64.h \
|
||||||
|
include/uapi/asm-generic/int-ll64.h \
|
||||||
|
arch/arm64/include/uapi/asm/bitsperlong.h \
|
||||||
|
include/asm-generic/bitsperlong.h \
|
||||||
|
include/uapi/asm-generic/bitsperlong.h \
|
||||||
|
include/uapi/linux/posix_types.h \
|
||||||
|
include/linux/stddef.h \
|
||||||
|
include/uapi/linux/stddef.h \
|
||||||
|
include/linux/compiler.h \
|
||||||
|
$(wildcard include/config/sparse/rcu/pointer.h) \
|
||||||
|
$(wildcard include/config/trace/branch/profiling.h) \
|
||||||
|
$(wildcard include/config/profile/all/branches.h) \
|
||||||
|
$(wildcard include/config/kasan.h) \
|
||||||
|
$(wildcard include/config/enable/must/check.h) \
|
||||||
|
$(wildcard include/config/enable/warn/deprecated.h) \
|
||||||
|
include/linux/compiler-gcc.h \
|
||||||
|
$(wildcard include/config/arch/supports/optimized/inlining.h) \
|
||||||
|
$(wildcard include/config/optimize/inlining.h) \
|
||||||
|
$(wildcard include/config/gcov/kernel.h) \
|
||||||
|
$(wildcard include/config/stack/validation.h) \
|
||||||
|
$(wildcard include/config/arch/use/builtin/bswap.h) \
|
||||||
|
arch/arm64/include/uapi/asm/posix_types.h \
|
||||||
|
include/uapi/asm-generic/posix_types.h \
|
||||||
|
include/linux/poison.h \
|
||||||
|
$(wildcard include/config/illegal/pointer/value.h) \
|
||||||
|
$(wildcard include/config/page/poisoning/zero.h) \
|
||||||
|
include/uapi/linux/const.h \
|
||||||
|
include/linux/kernel.h \
|
||||||
|
$(wildcard include/config/preempt/voluntary.h) \
|
||||||
|
$(wildcard include/config/debug/atomic/sleep.h) \
|
||||||
|
$(wildcard include/config/mmu.h) \
|
||||||
|
$(wildcard include/config/prove/locking.h) \
|
||||||
|
$(wildcard include/config/panic/timeout.h) \
|
||||||
|
/nix/store/p6af8rfcdv8sfl8nqwgcz9c4lxr2n5n1-gcc-5.4.0-aarch64-linux-gnu-stage-final/lib/gcc/aarch64-linux-gnu/5.4.0/include/stdarg.h \
|
||||||
|
include/linux/linkage.h \
|
||||||
|
include/linux/stringify.h \
|
||||||
|
include/linux/export.h \
|
||||||
|
$(wildcard include/config/have/underscore/symbol/prefix.h) \
|
||||||
|
$(wildcard include/config/modversions.h) \
|
||||||
|
$(wildcard include/config/module/rel/crcs.h) \
|
||||||
|
$(wildcard include/config/trim/unused/ksyms.h) \
|
||||||
|
arch/arm64/include/asm/linkage.h \
|
||||||
|
include/linux/bitops.h \
|
||||||
|
arch/arm64/include/asm/bitops.h \
|
||||||
|
arch/arm64/include/asm/barrier.h \
|
||||||
|
include/asm-generic/barrier.h \
|
||||||
|
include/asm-generic/bitops/builtin-__ffs.h \
|
||||||
|
include/asm-generic/bitops/builtin-ffs.h \
|
||||||
|
include/asm-generic/bitops/builtin-__fls.h \
|
||||||
|
include/asm-generic/bitops/builtin-fls.h \
|
||||||
|
include/asm-generic/bitops/ffz.h \
|
||||||
|
include/asm-generic/bitops/fls64.h \
|
||||||
|
include/asm-generic/bitops/find.h \
|
||||||
|
$(wildcard include/config/generic/find/first/bit.h) \
|
||||||
|
include/asm-generic/bitops/sched.h \
|
||||||
|
include/asm-generic/bitops/hweight.h \
|
||||||
|
include/asm-generic/bitops/arch_hweight.h \
|
||||||
|
include/asm-generic/bitops/const_hweight.h \
|
||||||
|
include/asm-generic/bitops/lock.h \
|
||||||
|
include/asm-generic/bitops/non-atomic.h \
|
||||||
|
include/asm-generic/bitops/le.h \
|
||||||
|
arch/arm64/include/uapi/asm/byteorder.h \
|
||||||
|
include/linux/byteorder/little_endian.h \
|
||||||
|
include/uapi/linux/byteorder/little_endian.h \
|
||||||
|
include/linux/swab.h \
|
||||||
|
include/uapi/linux/swab.h \
|
||||||
|
arch/arm64/include/generated/asm/swab.h \
|
||||||
|
include/uapi/asm-generic/swab.h \
|
||||||
|
include/linux/byteorder/generic.h \
|
||||||
|
include/linux/log2.h \
|
||||||
|
$(wildcard include/config/arch/has/ilog2/u32.h) \
|
||||||
|
$(wildcard include/config/arch/has/ilog2/u64.h) \
|
||||||
|
include/linux/typecheck.h \
|
||||||
|
include/linux/printk.h \
|
||||||
|
$(wildcard include/config/message/loglevel/default.h) \
|
||||||
|
$(wildcard include/config/console/loglevel/default.h) \
|
||||||
|
$(wildcard include/config/early/printk.h) \
|
||||||
|
$(wildcard include/config/printk/nmi.h) \
|
||||||
|
$(wildcard include/config/printk.h) \
|
||||||
|
$(wildcard include/config/dynamic/debug.h) \
|
||||||
|
include/linux/init.h \
|
||||||
|
$(wildcard include/config/strict/kernel/rwx.h) \
|
||||||
|
include/linux/kern_levels.h \
|
||||||
|
include/linux/cache.h \
|
||||||
|
$(wildcard include/config/arch/has/cache/line/size.h) \
|
||||||
|
include/uapi/linux/kernel.h \
|
||||||
|
include/uapi/linux/sysinfo.h \
|
||||||
|
arch/arm64/include/asm/cache.h \
|
||||||
|
arch/arm64/include/asm/cachetype.h \
|
||||||
|
arch/arm64/include/asm/cputype.h \
|
||||||
|
arch/arm64/include/asm/sysreg.h \
|
||||||
|
$(wildcard include/config/broken/gas/inst.h) \
|
||||||
|
$(wildcard include/config/cpu/big/endian.h) \
|
||||||
|
$(wildcard include/config/arm64/4k/pages.h) \
|
||||||
|
$(wildcard include/config/arm64/16k/pages.h) \
|
||||||
|
$(wildcard include/config/arm64/64k/pages.h) \
|
||||||
|
include/linux/stat.h \
|
||||||
|
arch/arm64/include/asm/stat.h \
|
||||||
|
$(wildcard include/config/compat.h) \
|
||||||
|
arch/arm64/include/uapi/asm/stat.h \
|
||||||
|
include/uapi/asm-generic/stat.h \
|
||||||
|
include/uapi/linux/stat.h \
|
||||||
|
include/linux/time.h \
|
||||||
|
$(wildcard include/config/arch/uses/gettimeoffset.h) \
|
||||||
|
include/linux/seqlock.h \
|
||||||
|
$(wildcard include/config/debug/lock/alloc.h) \
|
||||||
|
include/linux/spinlock.h \
|
||||||
|
$(wildcard include/config/debug/spinlock.h) \
|
||||||
|
$(wildcard include/config/generic/lockbreak.h) \
|
||||||
|
$(wildcard include/config/preempt.h) \
|
||||||
|
include/linux/preempt.h \
|
||||||
|
$(wildcard include/config/preempt/count.h) \
|
||||||
|
$(wildcard include/config/debug/preempt.h) \
|
||||||
|
$(wildcard include/config/preempt/tracer.h) \
|
||||||
|
$(wildcard include/config/preempt/notifiers.h) \
|
||||||
|
arch/arm64/include/generated/asm/preempt.h \
|
||||||
|
include/asm-generic/preempt.h \
|
||||||
|
include/linux/thread_info.h \
|
||||||
|
$(wildcard include/config/thread/info/in/task.h) \
|
||||||
|
$(wildcard include/config/debug/stack/usage.h) \
|
||||||
|
$(wildcard include/config/have/arch/within/stack/frames.h) \
|
||||||
|
$(wildcard include/config/hardened/usercopy.h) \
|
||||||
|
include/linux/bug.h \
|
||||||
|
$(wildcard include/config/bug/on/data/corruption.h) \
|
||||||
|
arch/arm64/include/asm/bug.h \
|
||||||
|
$(wildcard include/config/debug/bugverbose.h) \
|
||||||
|
arch/arm64/include/asm/brk-imm.h \
|
||||||
|
include/asm-generic/bug.h \
|
||||||
|
$(wildcard include/config/bug.h) \
|
||||||
|
$(wildcard include/config/generic/bug/relative/pointers.h) \
|
||||||
|
include/linux/restart_block.h \
|
||||||
|
arch/arm64/include/asm/current.h \
|
||||||
|
arch/arm64/include/asm/thread_info.h \
|
||||||
|
$(wildcard include/config/arm64/sw/ttbr0/pan.h) \
|
||||||
|
arch/arm64/include/asm/stack_pointer.h \
|
||||||
|
include/linux/irqflags.h \
|
||||||
|
$(wildcard include/config/trace/irqflags.h) \
|
||||||
|
$(wildcard include/config/irqsoff/tracer.h) \
|
||||||
|
$(wildcard include/config/trace/irqflags/support.h) \
|
||||||
|
arch/arm64/include/asm/irqflags.h \
|
||||||
|
arch/arm64/include/asm/ptrace.h \
|
||||||
|
arch/arm64/include/uapi/asm/ptrace.h \
|
||||||
|
arch/arm64/include/asm/hwcap.h \
|
||||||
|
arch/arm64/include/uapi/asm/hwcap.h \
|
||||||
|
include/asm-generic/ptrace.h \
|
||||||
|
include/linux/bottom_half.h \
|
||||||
|
include/linux/spinlock_types.h \
|
||||||
|
arch/arm64/include/asm/spinlock_types.h \
|
||||||
|
include/linux/lockdep.h \
|
||||||
|
$(wildcard include/config/lockdep.h) \
|
||||||
|
$(wildcard include/config/lock/stat.h) \
|
||||||
|
include/linux/rwlock_types.h \
|
||||||
|
arch/arm64/include/asm/spinlock.h \
|
||||||
|
arch/arm64/include/asm/lse.h \
|
||||||
|
$(wildcard include/config/as/lse.h) \
|
||||||
|
$(wildcard include/config/arm64/lse/atomics.h) \
|
||||||
|
arch/arm64/include/asm/processor.h \
|
||||||
|
include/linux/string.h \
|
||||||
|
$(wildcard include/config/binary/printf.h) \
|
||||||
|
include/uapi/linux/string.h \
|
||||||
|
arch/arm64/include/asm/string.h \
|
||||||
|
arch/arm64/include/asm/alternative.h \
|
||||||
|
$(wildcard include/config/arm64/uao.h) \
|
||||||
|
$(wildcard include/config/foo.h) \
|
||||||
|
arch/arm64/include/asm/cpucaps.h \
|
||||||
|
arch/arm64/include/asm/insn.h \
|
||||||
|
arch/arm64/include/asm/fpsimd.h \
|
||||||
|
arch/arm64/include/asm/hw_breakpoint.h \
|
||||||
|
$(wildcard include/config/have/hw/breakpoint.h) \
|
||||||
|
arch/arm64/include/asm/cpufeature.h \
|
||||||
|
include/linux/jump_label.h \
|
||||||
|
$(wildcard include/config/jump/label.h) \
|
||||||
|
include/linux/atomic.h \
|
||||||
|
$(wildcard include/config/generic/atomic64.h) \
|
||||||
|
arch/arm64/include/asm/atomic.h \
|
||||||
|
arch/arm64/include/asm/atomic_ll_sc.h \
|
||||||
|
arch/arm64/include/asm/cmpxchg.h \
|
||||||
|
include/asm-generic/atomic-long.h \
|
||||||
|
arch/arm64/include/asm/virt.h \
|
||||||
|
$(wildcard include/config/arm64/vhe.h) \
|
||||||
|
arch/arm64/include/asm/sections.h \
|
||||||
|
include/asm-generic/sections.h \
|
||||||
|
arch/arm64/include/asm/pgtable-hwdef.h \
|
||||||
|
$(wildcard include/config/pgtable/levels.h) \
|
||||||
|
include/linux/rwlock.h \
|
||||||
|
include/linux/spinlock_api_smp.h \
|
||||||
|
$(wildcard include/config/inline/spin/lock.h) \
|
||||||
|
$(wildcard include/config/inline/spin/lock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/spin/lock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/spin/lock/irqsave.h) \
|
||||||
|
$(wildcard include/config/inline/spin/trylock.h) \
|
||||||
|
$(wildcard include/config/inline/spin/trylock/bh.h) \
|
||||||
|
$(wildcard include/config/uninline/spin/unlock.h) \
|
||||||
|
$(wildcard include/config/inline/spin/unlock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/spin/unlock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/spin/unlock/irqrestore.h) \
|
||||||
|
include/linux/rwlock_api_smp.h \
|
||||||
|
$(wildcard include/config/inline/read/lock.h) \
|
||||||
|
$(wildcard include/config/inline/write/lock.h) \
|
||||||
|
$(wildcard include/config/inline/read/lock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/write/lock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/read/lock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/write/lock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/read/lock/irqsave.h) \
|
||||||
|
$(wildcard include/config/inline/write/lock/irqsave.h) \
|
||||||
|
$(wildcard include/config/inline/read/trylock.h) \
|
||||||
|
$(wildcard include/config/inline/write/trylock.h) \
|
||||||
|
$(wildcard include/config/inline/read/unlock.h) \
|
||||||
|
$(wildcard include/config/inline/write/unlock.h) \
|
||||||
|
$(wildcard include/config/inline/read/unlock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/write/unlock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/read/unlock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/write/unlock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/read/unlock/irqrestore.h) \
|
||||||
|
$(wildcard include/config/inline/write/unlock/irqrestore.h) \
|
||||||
|
include/linux/math64.h \
|
||||||
|
$(wildcard include/config/arch/supports/int128.h) \
|
||||||
|
arch/arm64/include/generated/asm/div64.h \
|
||||||
|
include/asm-generic/div64.h \
|
||||||
|
include/linux/time64.h \
|
||||||
|
include/uapi/linux/time.h \
|
||||||
|
include/linux/uidgid.h \
|
||||||
|
$(wildcard include/config/multiuser.h) \
|
||||||
|
$(wildcard include/config/user/ns.h) \
|
||||||
|
include/linux/highuid.h \
|
||||||
|
include/linux/kmod.h \
|
||||||
|
include/linux/gfp.h \
|
||||||
|
$(wildcard include/config/highmem.h) \
|
||||||
|
$(wildcard include/config/zone/dma.h) \
|
||||||
|
$(wildcard include/config/zone/dma32.h) \
|
||||||
|
$(wildcard include/config/zone/device.h) \
|
||||||
|
$(wildcard include/config/numa.h) \
|
||||||
|
$(wildcard include/config/pm/sleep.h) \
|
||||||
|
$(wildcard include/config/memory/isolation.h) \
|
||||||
|
$(wildcard include/config/compaction.h) \
|
||||||
|
$(wildcard include/config/cma.h) \
|
||||||
|
include/linux/mmdebug.h \
|
||||||
|
$(wildcard include/config/debug/vm.h) \
|
||||||
|
$(wildcard include/config/debug/virtual.h) \
|
||||||
|
$(wildcard include/config/debug/vm/pgflags.h) \
|
||||||
|
include/linux/mmzone.h \
|
||||||
|
$(wildcard include/config/force/max/zoneorder.h) \
|
||||||
|
$(wildcard include/config/zsmalloc.h) \
|
||||||
|
$(wildcard include/config/memcg.h) \
|
||||||
|
$(wildcard include/config/sparsemem.h) \
|
||||||
|
$(wildcard include/config/memory/hotplug.h) \
|
||||||
|
$(wildcard include/config/discontigmem.h) \
|
||||||
|
$(wildcard include/config/flat/node/mem/map.h) \
|
||||||
|
$(wildcard include/config/page/extension.h) \
|
||||||
|
$(wildcard include/config/no/bootmem.h) \
|
||||||
|
$(wildcard include/config/numa/balancing.h) \
|
||||||
|
$(wildcard include/config/deferred/struct/page/init.h) \
|
||||||
|
$(wildcard include/config/transparent/hugepage.h) \
|
||||||
|
$(wildcard include/config/have/memory/present.h) \
|
||||||
|
$(wildcard include/config/have/memoryless/nodes.h) \
|
||||||
|
$(wildcard include/config/need/node/memmap/size.h) \
|
||||||
|
$(wildcard include/config/have/memblock/node/map.h) \
|
||||||
|
$(wildcard include/config/need/multiple/nodes.h) \
|
||||||
|
$(wildcard include/config/have/arch/early/pfn/to/nid.h) \
|
||||||
|
$(wildcard include/config/flatmem.h) \
|
||||||
|
$(wildcard include/config/sparsemem/extreme.h) \
|
||||||
|
$(wildcard include/config/have/arch/pfn/valid.h) \
|
||||||
|
$(wildcard include/config/holes/in/zone.h) \
|
||||||
|
$(wildcard include/config/arch/has/holes/memorymodel.h) \
|
||||||
|
include/linux/wait.h \
|
||||||
|
include/uapi/linux/wait.h \
|
||||||
|
include/linux/threads.h \
|
||||||
|
$(wildcard include/config/nr/cpus.h) \
|
||||||
|
$(wildcard include/config/base/small.h) \
|
||||||
|
include/linux/numa.h \
|
||||||
|
$(wildcard include/config/nodes/shift.h) \
|
||||||
|
include/linux/nodemask.h \
|
||||||
|
$(wildcard include/config/movable/node.h) \
|
||||||
|
include/linux/bitmap.h \
|
||||||
|
$(wildcard include/config/s390.h) \
|
||||||
|
include/linux/pageblock-flags.h \
|
||||||
|
$(wildcard include/config/hugetlb/page.h) \
|
||||||
|
$(wildcard include/config/hugetlb/page/size/variable.h) \
|
||||||
|
include/linux/page-flags-layout.h \
|
||||||
|
$(wildcard include/config/sparsemem/vmemmap.h) \
|
||||||
|
include/generated/bounds.h \
|
||||||
|
arch/arm64/include/asm/sparsemem.h \
|
||||||
|
arch/arm64/include/asm/page.h \
|
||||||
|
$(wildcard include/config/arm64/page/shift.h) \
|
||||||
|
$(wildcard include/config/arm64/cont/shift.h) \
|
||||||
|
include/linux/personality.h \
|
||||||
|
include/uapi/linux/personality.h \
|
||||||
|
arch/arm64/include/asm/pgtable-types.h \
|
||||||
|
include/asm-generic/pgtable-nopud.h \
|
||||||
|
include/asm-generic/pgtable-nop4d-hack.h \
|
||||||
|
include/asm-generic/5level-fixup.h \
|
||||||
|
arch/arm64/include/asm/memory.h \
|
||||||
|
$(wildcard include/config/arm64/va/bits.h) \
|
||||||
|
$(wildcard include/config/blk/dev/initrd.h) \
|
||||||
|
arch/arm64/include/generated/asm/sizes.h \
|
||||||
|
include/asm-generic/sizes.h \
|
||||||
|
include/linux/sizes.h \
|
||||||
|
include/asm-generic/memory_model.h \
|
||||||
|
include/linux/pfn.h \
|
||||||
|
include/asm-generic/getorder.h \
|
||||||
|
include/linux/memory_hotplug.h \
|
||||||
|
$(wildcard include/config/memory/hotremove.h) \
|
||||||
|
$(wildcard include/config/have/arch/nodedata/extension.h) \
|
||||||
|
$(wildcard include/config/have/bootmem/info/node.h) \
|
||||||
|
include/linux/notifier.h \
|
||||||
|
include/linux/errno.h \
|
||||||
|
include/uapi/linux/errno.h \
|
||||||
|
arch/arm64/include/generated/asm/errno.h \
|
||||||
|
include/uapi/asm-generic/errno.h \
|
||||||
|
include/uapi/asm-generic/errno-base.h \
|
||||||
|
include/linux/mutex.h \
|
||||||
|
$(wildcard include/config/mutex/spin/on/owner.h) \
|
||||||
|
$(wildcard include/config/debug/mutexes.h) \
|
||||||
|
include/linux/osq_lock.h \
|
||||||
|
include/linux/debug_locks.h \
|
||||||
|
$(wildcard include/config/debug/locking/api/selftests.h) \
|
||||||
|
include/linux/rwsem.h \
|
||||||
|
$(wildcard include/config/rwsem/spin/on/owner.h) \
|
||||||
|
$(wildcard include/config/rwsem/generic/spinlock.h) \
|
||||||
|
include/linux/err.h \
|
||||||
|
arch/arm64/include/generated/asm/rwsem.h \
|
||||||
|
include/asm-generic/rwsem.h \
|
||||||
|
include/linux/srcu.h \
|
||||||
|
include/linux/rcupdate.h \
|
||||||
|
$(wildcard include/config/tiny/rcu.h) \
|
||||||
|
$(wildcard include/config/tree/rcu.h) \
|
||||||
|
$(wildcard include/config/preempt/rcu.h) \
|
||||||
|
$(wildcard include/config/rcu/trace.h) \
|
||||||
|
$(wildcard include/config/rcu/stall/common.h) \
|
||||||
|
$(wildcard include/config/no/hz/full.h) \
|
||||||
|
$(wildcard include/config/rcu/nocb/cpu.h) \
|
||||||
|
$(wildcard include/config/tasks/rcu.h) \
|
||||||
|
$(wildcard include/config/debug/objects/rcu/head.h) \
|
||||||
|
$(wildcard include/config/hotplug/cpu.h) \
|
||||||
|
$(wildcard include/config/prove/rcu.h) \
|
||||||
|
$(wildcard include/config/rcu/boost.h) \
|
||||||
|
$(wildcard include/config/rcu/nocb/cpu/all.h) \
|
||||||
|
$(wildcard include/config/no/hz/full/sysidle.h) \
|
||||||
|
$(wildcard include/config/ppc.h) \
|
||||||
|
include/linux/cpumask.h \
|
||||||
|
$(wildcard include/config/cpumask/offstack.h) \
|
||||||
|
$(wildcard include/config/debug/per/cpu/maps.h) \
|
||||||
|
include/linux/debugobjects.h \
|
||||||
|
$(wildcard include/config/debug/objects.h) \
|
||||||
|
$(wildcard include/config/debug/objects/free.h) \
|
||||||
|
include/linux/ktime.h \
|
||||||
|
include/linux/jiffies.h \
|
||||||
|
include/linux/timex.h \
|
||||||
|
include/uapi/linux/timex.h \
|
||||||
|
include/uapi/linux/param.h \
|
||||||
|
arch/arm64/include/uapi/asm/param.h \
|
||||||
|
include/asm-generic/param.h \
|
||||||
|
$(wildcard include/config/hz.h) \
|
||||||
|
include/uapi/asm-generic/param.h \
|
||||||
|
arch/arm64/include/asm/timex.h \
|
||||||
|
arch/arm64/include/asm/arch_timer.h \
|
||||||
|
$(wildcard include/config/arm/arch/timer/ool/workaround.h) \
|
||||||
|
include/clocksource/arm_arch_timer.h \
|
||||||
|
$(wildcard include/config/arm/arch/timer.h) \
|
||||||
|
include/linux/timecounter.h \
|
||||||
|
include/asm-generic/timex.h \
|
||||||
|
include/generated/timeconst.h \
|
||||||
|
include/linux/timekeeping.h \
|
||||||
|
include/linux/rcutree.h \
|
||||||
|
include/linux/workqueue.h \
|
||||||
|
$(wildcard include/config/debug/objects/work.h) \
|
||||||
|
$(wildcard include/config/freezer.h) \
|
||||||
|
$(wildcard include/config/wq/watchdog.h) \
|
||||||
|
include/linux/timer.h \
|
||||||
|
$(wildcard include/config/debug/objects/timers.h) \
|
||||||
|
$(wildcard include/config/no/hz/common.h) \
|
||||||
|
include/linux/topology.h \
|
||||||
|
$(wildcard include/config/use/percpu/numa/node/id.h) \
|
||||||
|
$(wildcard include/config/sched/smt.h) \
|
||||||
|
include/linux/smp.h \
|
||||||
|
$(wildcard include/config/up/late/init.h) \
|
||||||
|
include/linux/llist.h \
|
||||||
|
$(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \
|
||||||
|
arch/arm64/include/asm/smp.h \
|
||||||
|
$(wildcard include/config/arm64/acpi/parking/protocol.h) \
|
||||||
|
arch/arm64/include/asm/percpu.h \
|
||||||
|
include/asm-generic/percpu.h \
|
||||||
|
$(wildcard include/config/have/setup/per/cpu/area.h) \
|
||||||
|
include/linux/percpu-defs.h \
|
||||||
|
$(wildcard include/config/debug/force/weak/per/cpu.h) \
|
||||||
|
include/linux/percpu.h \
|
||||||
|
$(wildcard include/config/need/per/cpu/embed/first/chunk.h) \
|
||||||
|
$(wildcard include/config/need/per/cpu/page/first/chunk.h) \
|
||||||
|
arch/arm64/include/asm/topology.h \
|
||||||
|
include/asm-generic/topology.h \
|
||||||
|
include/linux/sysctl.h \
|
||||||
|
$(wildcard include/config/sysctl.h) \
|
||||||
|
include/linux/rbtree.h \
|
||||||
|
include/uapi/linux/sysctl.h \
|
||||||
|
include/linux/elf.h \
|
||||||
|
arch/arm64/include/asm/elf.h \
|
||||||
|
arch/arm64/include/generated/asm/user.h \
|
||||||
|
include/asm-generic/user.h \
|
||||||
|
include/uapi/linux/elf.h \
|
||||||
|
include/uapi/linux/elf-em.h \
|
||||||
|
include/linux/kobject.h \
|
||||||
|
$(wildcard include/config/uevent/helper.h) \
|
||||||
|
$(wildcard include/config/debug/kobject/release.h) \
|
||||||
|
include/linux/sysfs.h \
|
||||||
|
include/linux/kernfs.h \
|
||||||
|
$(wildcard include/config/kernfs.h) \
|
||||||
|
include/linux/idr.h \
|
||||||
|
include/linux/radix-tree.h \
|
||||||
|
$(wildcard include/config/radix/tree/multiorder.h) \
|
||||||
|
include/linux/kobject_ns.h \
|
||||||
|
include/linux/kref.h \
|
||||||
|
include/linux/refcount.h \
|
||||||
|
include/linux/moduleparam.h \
|
||||||
|
$(wildcard include/config/alpha.h) \
|
||||||
|
$(wildcard include/config/ia64.h) \
|
||||||
|
$(wildcard include/config/ppc64.h) \
|
||||||
|
include/linux/rbtree_latch.h \
|
||||||
|
arch/arm64/include/asm/module.h \
|
||||||
|
$(wildcard include/config/arm64/module/plts.h) \
|
||||||
|
$(wildcard include/config/randomize/base.h) \
|
||||||
|
include/asm-generic/module.h \
|
||||||
|
$(wildcard include/config/have/mod/arch/specific.h) \
|
||||||
|
$(wildcard include/config/modules/use/elf/rel.h) \
|
||||||
|
$(wildcard include/config/modules/use/elf/rela.h) \
|
||||||
|
include/linux/vermagic.h \
|
||||||
|
include/generated/utsrelease.h \
|
||||||
|
|
||||||
|
/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.mod.o: $(deps_/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.mod.o)
|
||||||
|
|
||||||
|
$(deps_/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.mod.o):
|
||||||
669
project/modules/infrared_sensor_in_1/.infrared_sensor_in_1.o.cmd
Normal file
669
project/modules/infrared_sensor_in_1/.infrared_sensor_in_1.o.cmd
Normal file
@@ -0,0 +1,669 @@
|
|||||||
|
cmd_/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.o := aarch64-linux-gnu-gcc -Wp,-MD,/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/.infrared_sensor_in_1.o.d -nostdinc -isystem /nix/store/p6af8rfcdv8sfl8nqwgcz9c4lxr2n5n1-gcc-5.4.0-aarch64-linux-gnu-stage-final/lib/gcc/aarch64-linux-gnu/5.4.0/include -I./arch/arm64/include -I./arch/arm64/include/generated/uapi -I./arch/arm64/include/generated -I./include -I./arch/arm64/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mgeneral-regs-only -DCONFIG_AS_LSE=1 -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DMODULE -mcmodel=large -DKBUILD_BASENAME='"infrared_sensor_in_1"' -DKBUILD_MODNAME='"infrared_sensor_in_1"' -c -o /home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.o /home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.c
|
||||||
|
|
||||||
|
source_/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.o := /home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.c
|
||||||
|
|
||||||
|
deps_/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.o := \
|
||||||
|
include/linux/init.h \
|
||||||
|
$(wildcard include/config/strict/kernel/rwx.h) \
|
||||||
|
$(wildcard include/config/strict/module/rwx.h) \
|
||||||
|
include/linux/compiler.h \
|
||||||
|
$(wildcard include/config/sparse/rcu/pointer.h) \
|
||||||
|
$(wildcard include/config/trace/branch/profiling.h) \
|
||||||
|
$(wildcard include/config/profile/all/branches.h) \
|
||||||
|
$(wildcard include/config/kasan.h) \
|
||||||
|
$(wildcard include/config/enable/must/check.h) \
|
||||||
|
$(wildcard include/config/enable/warn/deprecated.h) \
|
||||||
|
include/linux/compiler-gcc.h \
|
||||||
|
$(wildcard include/config/arch/supports/optimized/inlining.h) \
|
||||||
|
$(wildcard include/config/optimize/inlining.h) \
|
||||||
|
$(wildcard include/config/gcov/kernel.h) \
|
||||||
|
$(wildcard include/config/stack/validation.h) \
|
||||||
|
$(wildcard include/config/arch/use/builtin/bswap.h) \
|
||||||
|
include/uapi/linux/types.h \
|
||||||
|
arch/arm64/include/generated/asm/types.h \
|
||||||
|
include/uapi/asm-generic/types.h \
|
||||||
|
include/asm-generic/int-ll64.h \
|
||||||
|
include/uapi/asm-generic/int-ll64.h \
|
||||||
|
arch/arm64/include/uapi/asm/bitsperlong.h \
|
||||||
|
include/asm-generic/bitsperlong.h \
|
||||||
|
$(wildcard include/config/64bit.h) \
|
||||||
|
include/uapi/asm-generic/bitsperlong.h \
|
||||||
|
include/uapi/linux/posix_types.h \
|
||||||
|
include/linux/stddef.h \
|
||||||
|
include/uapi/linux/stddef.h \
|
||||||
|
arch/arm64/include/uapi/asm/posix_types.h \
|
||||||
|
include/uapi/asm-generic/posix_types.h \
|
||||||
|
include/linux/types.h \
|
||||||
|
$(wildcard include/config/have/uid16.h) \
|
||||||
|
$(wildcard include/config/uid16.h) \
|
||||||
|
$(wildcard include/config/lbdaf.h) \
|
||||||
|
$(wildcard include/config/arch/dma/addr/t/64bit.h) \
|
||||||
|
$(wildcard include/config/phys/addr/t/64bit.h) \
|
||||||
|
include/linux/module.h \
|
||||||
|
$(wildcard include/config/modules.h) \
|
||||||
|
$(wildcard include/config/sysfs.h) \
|
||||||
|
$(wildcard include/config/modules/tree/lookup.h) \
|
||||||
|
$(wildcard include/config/livepatch.h) \
|
||||||
|
$(wildcard include/config/unused/symbols.h) \
|
||||||
|
$(wildcard include/config/module/sig.h) \
|
||||||
|
$(wildcard include/config/generic/bug.h) \
|
||||||
|
$(wildcard include/config/kallsyms.h) \
|
||||||
|
$(wildcard include/config/smp.h) \
|
||||||
|
$(wildcard include/config/tracepoints.h) \
|
||||||
|
$(wildcard include/config/tracing.h) \
|
||||||
|
$(wildcard include/config/event/tracing.h) \
|
||||||
|
$(wildcard include/config/ftrace/mcount/record.h) \
|
||||||
|
$(wildcard include/config/module/unload.h) \
|
||||||
|
$(wildcard include/config/constructors.h) \
|
||||||
|
include/linux/list.h \
|
||||||
|
$(wildcard include/config/debug/list.h) \
|
||||||
|
include/linux/poison.h \
|
||||||
|
$(wildcard include/config/illegal/pointer/value.h) \
|
||||||
|
$(wildcard include/config/page/poisoning/zero.h) \
|
||||||
|
include/uapi/linux/const.h \
|
||||||
|
include/linux/kernel.h \
|
||||||
|
$(wildcard include/config/preempt/voluntary.h) \
|
||||||
|
$(wildcard include/config/debug/atomic/sleep.h) \
|
||||||
|
$(wildcard include/config/mmu.h) \
|
||||||
|
$(wildcard include/config/prove/locking.h) \
|
||||||
|
$(wildcard include/config/panic/timeout.h) \
|
||||||
|
/nix/store/p6af8rfcdv8sfl8nqwgcz9c4lxr2n5n1-gcc-5.4.0-aarch64-linux-gnu-stage-final/lib/gcc/aarch64-linux-gnu/5.4.0/include/stdarg.h \
|
||||||
|
include/linux/linkage.h \
|
||||||
|
include/linux/stringify.h \
|
||||||
|
include/linux/export.h \
|
||||||
|
$(wildcard include/config/have/underscore/symbol/prefix.h) \
|
||||||
|
$(wildcard include/config/modversions.h) \
|
||||||
|
$(wildcard include/config/module/rel/crcs.h) \
|
||||||
|
$(wildcard include/config/trim/unused/ksyms.h) \
|
||||||
|
arch/arm64/include/asm/linkage.h \
|
||||||
|
include/linux/bitops.h \
|
||||||
|
arch/arm64/include/asm/bitops.h \
|
||||||
|
arch/arm64/include/asm/barrier.h \
|
||||||
|
include/asm-generic/barrier.h \
|
||||||
|
include/asm-generic/bitops/builtin-__ffs.h \
|
||||||
|
include/asm-generic/bitops/builtin-ffs.h \
|
||||||
|
include/asm-generic/bitops/builtin-__fls.h \
|
||||||
|
include/asm-generic/bitops/builtin-fls.h \
|
||||||
|
include/asm-generic/bitops/ffz.h \
|
||||||
|
include/asm-generic/bitops/fls64.h \
|
||||||
|
include/asm-generic/bitops/find.h \
|
||||||
|
$(wildcard include/config/generic/find/first/bit.h) \
|
||||||
|
include/asm-generic/bitops/sched.h \
|
||||||
|
include/asm-generic/bitops/hweight.h \
|
||||||
|
include/asm-generic/bitops/arch_hweight.h \
|
||||||
|
include/asm-generic/bitops/const_hweight.h \
|
||||||
|
include/asm-generic/bitops/lock.h \
|
||||||
|
include/asm-generic/bitops/non-atomic.h \
|
||||||
|
include/asm-generic/bitops/le.h \
|
||||||
|
arch/arm64/include/uapi/asm/byteorder.h \
|
||||||
|
include/linux/byteorder/little_endian.h \
|
||||||
|
include/uapi/linux/byteorder/little_endian.h \
|
||||||
|
include/linux/swab.h \
|
||||||
|
include/uapi/linux/swab.h \
|
||||||
|
arch/arm64/include/generated/asm/swab.h \
|
||||||
|
include/uapi/asm-generic/swab.h \
|
||||||
|
include/linux/byteorder/generic.h \
|
||||||
|
include/linux/log2.h \
|
||||||
|
$(wildcard include/config/arch/has/ilog2/u32.h) \
|
||||||
|
$(wildcard include/config/arch/has/ilog2/u64.h) \
|
||||||
|
include/linux/typecheck.h \
|
||||||
|
include/linux/printk.h \
|
||||||
|
$(wildcard include/config/message/loglevel/default.h) \
|
||||||
|
$(wildcard include/config/console/loglevel/default.h) \
|
||||||
|
$(wildcard include/config/early/printk.h) \
|
||||||
|
$(wildcard include/config/printk/nmi.h) \
|
||||||
|
$(wildcard include/config/printk.h) \
|
||||||
|
$(wildcard include/config/dynamic/debug.h) \
|
||||||
|
include/linux/kern_levels.h \
|
||||||
|
include/linux/cache.h \
|
||||||
|
$(wildcard include/config/arch/has/cache/line/size.h) \
|
||||||
|
include/uapi/linux/kernel.h \
|
||||||
|
include/uapi/linux/sysinfo.h \
|
||||||
|
arch/arm64/include/asm/cache.h \
|
||||||
|
arch/arm64/include/asm/cachetype.h \
|
||||||
|
arch/arm64/include/asm/cputype.h \
|
||||||
|
arch/arm64/include/asm/sysreg.h \
|
||||||
|
$(wildcard include/config/broken/gas/inst.h) \
|
||||||
|
$(wildcard include/config/cpu/big/endian.h) \
|
||||||
|
$(wildcard include/config/arm64/4k/pages.h) \
|
||||||
|
$(wildcard include/config/arm64/16k/pages.h) \
|
||||||
|
$(wildcard include/config/arm64/64k/pages.h) \
|
||||||
|
include/linux/stat.h \
|
||||||
|
arch/arm64/include/asm/stat.h \
|
||||||
|
$(wildcard include/config/compat.h) \
|
||||||
|
arch/arm64/include/uapi/asm/stat.h \
|
||||||
|
include/uapi/asm-generic/stat.h \
|
||||||
|
include/uapi/linux/stat.h \
|
||||||
|
include/linux/time.h \
|
||||||
|
$(wildcard include/config/arch/uses/gettimeoffset.h) \
|
||||||
|
include/linux/seqlock.h \
|
||||||
|
$(wildcard include/config/debug/lock/alloc.h) \
|
||||||
|
include/linux/spinlock.h \
|
||||||
|
$(wildcard include/config/debug/spinlock.h) \
|
||||||
|
$(wildcard include/config/generic/lockbreak.h) \
|
||||||
|
$(wildcard include/config/preempt.h) \
|
||||||
|
include/linux/preempt.h \
|
||||||
|
$(wildcard include/config/preempt/count.h) \
|
||||||
|
$(wildcard include/config/debug/preempt.h) \
|
||||||
|
$(wildcard include/config/preempt/tracer.h) \
|
||||||
|
$(wildcard include/config/preempt/notifiers.h) \
|
||||||
|
arch/arm64/include/generated/asm/preempt.h \
|
||||||
|
include/asm-generic/preempt.h \
|
||||||
|
include/linux/thread_info.h \
|
||||||
|
$(wildcard include/config/thread/info/in/task.h) \
|
||||||
|
$(wildcard include/config/debug/stack/usage.h) \
|
||||||
|
$(wildcard include/config/have/arch/within/stack/frames.h) \
|
||||||
|
$(wildcard include/config/hardened/usercopy.h) \
|
||||||
|
include/linux/bug.h \
|
||||||
|
$(wildcard include/config/bug/on/data/corruption.h) \
|
||||||
|
arch/arm64/include/asm/bug.h \
|
||||||
|
$(wildcard include/config/debug/bugverbose.h) \
|
||||||
|
arch/arm64/include/asm/brk-imm.h \
|
||||||
|
include/asm-generic/bug.h \
|
||||||
|
$(wildcard include/config/bug.h) \
|
||||||
|
$(wildcard include/config/generic/bug/relative/pointers.h) \
|
||||||
|
include/linux/restart_block.h \
|
||||||
|
arch/arm64/include/asm/current.h \
|
||||||
|
arch/arm64/include/asm/thread_info.h \
|
||||||
|
$(wildcard include/config/arm64/sw/ttbr0/pan.h) \
|
||||||
|
arch/arm64/include/asm/stack_pointer.h \
|
||||||
|
include/linux/irqflags.h \
|
||||||
|
$(wildcard include/config/trace/irqflags.h) \
|
||||||
|
$(wildcard include/config/irqsoff/tracer.h) \
|
||||||
|
$(wildcard include/config/trace/irqflags/support.h) \
|
||||||
|
arch/arm64/include/asm/irqflags.h \
|
||||||
|
arch/arm64/include/asm/ptrace.h \
|
||||||
|
arch/arm64/include/uapi/asm/ptrace.h \
|
||||||
|
arch/arm64/include/asm/hwcap.h \
|
||||||
|
arch/arm64/include/uapi/asm/hwcap.h \
|
||||||
|
include/asm-generic/ptrace.h \
|
||||||
|
include/linux/bottom_half.h \
|
||||||
|
include/linux/spinlock_types.h \
|
||||||
|
arch/arm64/include/asm/spinlock_types.h \
|
||||||
|
include/linux/lockdep.h \
|
||||||
|
$(wildcard include/config/lockdep.h) \
|
||||||
|
$(wildcard include/config/lock/stat.h) \
|
||||||
|
include/linux/rwlock_types.h \
|
||||||
|
arch/arm64/include/asm/spinlock.h \
|
||||||
|
arch/arm64/include/asm/lse.h \
|
||||||
|
$(wildcard include/config/as/lse.h) \
|
||||||
|
$(wildcard include/config/arm64/lse/atomics.h) \
|
||||||
|
arch/arm64/include/asm/processor.h \
|
||||||
|
include/linux/string.h \
|
||||||
|
$(wildcard include/config/binary/printf.h) \
|
||||||
|
include/uapi/linux/string.h \
|
||||||
|
arch/arm64/include/asm/string.h \
|
||||||
|
arch/arm64/include/asm/alternative.h \
|
||||||
|
$(wildcard include/config/arm64/uao.h) \
|
||||||
|
$(wildcard include/config/foo.h) \
|
||||||
|
arch/arm64/include/asm/cpucaps.h \
|
||||||
|
arch/arm64/include/asm/insn.h \
|
||||||
|
arch/arm64/include/asm/fpsimd.h \
|
||||||
|
arch/arm64/include/asm/hw_breakpoint.h \
|
||||||
|
$(wildcard include/config/have/hw/breakpoint.h) \
|
||||||
|
arch/arm64/include/asm/cpufeature.h \
|
||||||
|
include/linux/jump_label.h \
|
||||||
|
$(wildcard include/config/jump/label.h) \
|
||||||
|
include/linux/atomic.h \
|
||||||
|
$(wildcard include/config/generic/atomic64.h) \
|
||||||
|
arch/arm64/include/asm/atomic.h \
|
||||||
|
arch/arm64/include/asm/atomic_ll_sc.h \
|
||||||
|
arch/arm64/include/asm/cmpxchg.h \
|
||||||
|
include/asm-generic/atomic-long.h \
|
||||||
|
arch/arm64/include/asm/virt.h \
|
||||||
|
$(wildcard include/config/arm64/vhe.h) \
|
||||||
|
arch/arm64/include/asm/sections.h \
|
||||||
|
include/asm-generic/sections.h \
|
||||||
|
arch/arm64/include/asm/pgtable-hwdef.h \
|
||||||
|
$(wildcard include/config/pgtable/levels.h) \
|
||||||
|
include/linux/rwlock.h \
|
||||||
|
include/linux/spinlock_api_smp.h \
|
||||||
|
$(wildcard include/config/inline/spin/lock.h) \
|
||||||
|
$(wildcard include/config/inline/spin/lock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/spin/lock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/spin/lock/irqsave.h) \
|
||||||
|
$(wildcard include/config/inline/spin/trylock.h) \
|
||||||
|
$(wildcard include/config/inline/spin/trylock/bh.h) \
|
||||||
|
$(wildcard include/config/uninline/spin/unlock.h) \
|
||||||
|
$(wildcard include/config/inline/spin/unlock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/spin/unlock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/spin/unlock/irqrestore.h) \
|
||||||
|
include/linux/rwlock_api_smp.h \
|
||||||
|
$(wildcard include/config/inline/read/lock.h) \
|
||||||
|
$(wildcard include/config/inline/write/lock.h) \
|
||||||
|
$(wildcard include/config/inline/read/lock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/write/lock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/read/lock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/write/lock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/read/lock/irqsave.h) \
|
||||||
|
$(wildcard include/config/inline/write/lock/irqsave.h) \
|
||||||
|
$(wildcard include/config/inline/read/trylock.h) \
|
||||||
|
$(wildcard include/config/inline/write/trylock.h) \
|
||||||
|
$(wildcard include/config/inline/read/unlock.h) \
|
||||||
|
$(wildcard include/config/inline/write/unlock.h) \
|
||||||
|
$(wildcard include/config/inline/read/unlock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/write/unlock/bh.h) \
|
||||||
|
$(wildcard include/config/inline/read/unlock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/write/unlock/irq.h) \
|
||||||
|
$(wildcard include/config/inline/read/unlock/irqrestore.h) \
|
||||||
|
$(wildcard include/config/inline/write/unlock/irqrestore.h) \
|
||||||
|
include/linux/math64.h \
|
||||||
|
$(wildcard include/config/arch/supports/int128.h) \
|
||||||
|
arch/arm64/include/generated/asm/div64.h \
|
||||||
|
include/asm-generic/div64.h \
|
||||||
|
include/linux/time64.h \
|
||||||
|
include/uapi/linux/time.h \
|
||||||
|
include/linux/uidgid.h \
|
||||||
|
$(wildcard include/config/multiuser.h) \
|
||||||
|
$(wildcard include/config/user/ns.h) \
|
||||||
|
include/linux/highuid.h \
|
||||||
|
include/linux/kmod.h \
|
||||||
|
include/linux/gfp.h \
|
||||||
|
$(wildcard include/config/highmem.h) \
|
||||||
|
$(wildcard include/config/zone/dma.h) \
|
||||||
|
$(wildcard include/config/zone/dma32.h) \
|
||||||
|
$(wildcard include/config/zone/device.h) \
|
||||||
|
$(wildcard include/config/numa.h) \
|
||||||
|
$(wildcard include/config/pm/sleep.h) \
|
||||||
|
$(wildcard include/config/memory/isolation.h) \
|
||||||
|
$(wildcard include/config/compaction.h) \
|
||||||
|
$(wildcard include/config/cma.h) \
|
||||||
|
include/linux/mmdebug.h \
|
||||||
|
$(wildcard include/config/debug/vm.h) \
|
||||||
|
$(wildcard include/config/debug/virtual.h) \
|
||||||
|
$(wildcard include/config/debug/vm/pgflags.h) \
|
||||||
|
include/linux/mmzone.h \
|
||||||
|
$(wildcard include/config/force/max/zoneorder.h) \
|
||||||
|
$(wildcard include/config/zsmalloc.h) \
|
||||||
|
$(wildcard include/config/memcg.h) \
|
||||||
|
$(wildcard include/config/sparsemem.h) \
|
||||||
|
$(wildcard include/config/memory/hotplug.h) \
|
||||||
|
$(wildcard include/config/discontigmem.h) \
|
||||||
|
$(wildcard include/config/flat/node/mem/map.h) \
|
||||||
|
$(wildcard include/config/page/extension.h) \
|
||||||
|
$(wildcard include/config/no/bootmem.h) \
|
||||||
|
$(wildcard include/config/numa/balancing.h) \
|
||||||
|
$(wildcard include/config/deferred/struct/page/init.h) \
|
||||||
|
$(wildcard include/config/transparent/hugepage.h) \
|
||||||
|
$(wildcard include/config/have/memory/present.h) \
|
||||||
|
$(wildcard include/config/have/memoryless/nodes.h) \
|
||||||
|
$(wildcard include/config/need/node/memmap/size.h) \
|
||||||
|
$(wildcard include/config/have/memblock/node/map.h) \
|
||||||
|
$(wildcard include/config/need/multiple/nodes.h) \
|
||||||
|
$(wildcard include/config/have/arch/early/pfn/to/nid.h) \
|
||||||
|
$(wildcard include/config/flatmem.h) \
|
||||||
|
$(wildcard include/config/sparsemem/extreme.h) \
|
||||||
|
$(wildcard include/config/have/arch/pfn/valid.h) \
|
||||||
|
$(wildcard include/config/holes/in/zone.h) \
|
||||||
|
$(wildcard include/config/arch/has/holes/memorymodel.h) \
|
||||||
|
include/linux/wait.h \
|
||||||
|
include/uapi/linux/wait.h \
|
||||||
|
include/linux/threads.h \
|
||||||
|
$(wildcard include/config/nr/cpus.h) \
|
||||||
|
$(wildcard include/config/base/small.h) \
|
||||||
|
include/linux/numa.h \
|
||||||
|
$(wildcard include/config/nodes/shift.h) \
|
||||||
|
include/linux/nodemask.h \
|
||||||
|
$(wildcard include/config/movable/node.h) \
|
||||||
|
include/linux/bitmap.h \
|
||||||
|
$(wildcard include/config/s390.h) \
|
||||||
|
include/linux/pageblock-flags.h \
|
||||||
|
$(wildcard include/config/hugetlb/page.h) \
|
||||||
|
$(wildcard include/config/hugetlb/page/size/variable.h) \
|
||||||
|
include/linux/page-flags-layout.h \
|
||||||
|
$(wildcard include/config/sparsemem/vmemmap.h) \
|
||||||
|
include/generated/bounds.h \
|
||||||
|
arch/arm64/include/asm/sparsemem.h \
|
||||||
|
arch/arm64/include/asm/page.h \
|
||||||
|
$(wildcard include/config/arm64/page/shift.h) \
|
||||||
|
$(wildcard include/config/arm64/cont/shift.h) \
|
||||||
|
include/linux/personality.h \
|
||||||
|
include/uapi/linux/personality.h \
|
||||||
|
arch/arm64/include/asm/pgtable-types.h \
|
||||||
|
include/asm-generic/pgtable-nopud.h \
|
||||||
|
include/asm-generic/pgtable-nop4d-hack.h \
|
||||||
|
include/asm-generic/5level-fixup.h \
|
||||||
|
arch/arm64/include/asm/memory.h \
|
||||||
|
$(wildcard include/config/arm64/va/bits.h) \
|
||||||
|
$(wildcard include/config/blk/dev/initrd.h) \
|
||||||
|
arch/arm64/include/generated/asm/sizes.h \
|
||||||
|
include/asm-generic/sizes.h \
|
||||||
|
include/linux/sizes.h \
|
||||||
|
include/asm-generic/memory_model.h \
|
||||||
|
include/linux/pfn.h \
|
||||||
|
include/asm-generic/getorder.h \
|
||||||
|
include/linux/memory_hotplug.h \
|
||||||
|
$(wildcard include/config/memory/hotremove.h) \
|
||||||
|
$(wildcard include/config/have/arch/nodedata/extension.h) \
|
||||||
|
$(wildcard include/config/have/bootmem/info/node.h) \
|
||||||
|
include/linux/notifier.h \
|
||||||
|
include/linux/errno.h \
|
||||||
|
include/uapi/linux/errno.h \
|
||||||
|
arch/arm64/include/generated/asm/errno.h \
|
||||||
|
include/uapi/asm-generic/errno.h \
|
||||||
|
include/uapi/asm-generic/errno-base.h \
|
||||||
|
include/linux/mutex.h \
|
||||||
|
$(wildcard include/config/mutex/spin/on/owner.h) \
|
||||||
|
$(wildcard include/config/debug/mutexes.h) \
|
||||||
|
include/linux/osq_lock.h \
|
||||||
|
include/linux/debug_locks.h \
|
||||||
|
$(wildcard include/config/debug/locking/api/selftests.h) \
|
||||||
|
include/linux/rwsem.h \
|
||||||
|
$(wildcard include/config/rwsem/spin/on/owner.h) \
|
||||||
|
$(wildcard include/config/rwsem/generic/spinlock.h) \
|
||||||
|
include/linux/err.h \
|
||||||
|
arch/arm64/include/generated/asm/rwsem.h \
|
||||||
|
include/asm-generic/rwsem.h \
|
||||||
|
include/linux/srcu.h \
|
||||||
|
include/linux/rcupdate.h \
|
||||||
|
$(wildcard include/config/tiny/rcu.h) \
|
||||||
|
$(wildcard include/config/tree/rcu.h) \
|
||||||
|
$(wildcard include/config/preempt/rcu.h) \
|
||||||
|
$(wildcard include/config/rcu/trace.h) \
|
||||||
|
$(wildcard include/config/rcu/stall/common.h) \
|
||||||
|
$(wildcard include/config/no/hz/full.h) \
|
||||||
|
$(wildcard include/config/rcu/nocb/cpu.h) \
|
||||||
|
$(wildcard include/config/tasks/rcu.h) \
|
||||||
|
$(wildcard include/config/debug/objects/rcu/head.h) \
|
||||||
|
$(wildcard include/config/hotplug/cpu.h) \
|
||||||
|
$(wildcard include/config/prove/rcu.h) \
|
||||||
|
$(wildcard include/config/rcu/boost.h) \
|
||||||
|
$(wildcard include/config/rcu/nocb/cpu/all.h) \
|
||||||
|
$(wildcard include/config/no/hz/full/sysidle.h) \
|
||||||
|
$(wildcard include/config/ppc.h) \
|
||||||
|
include/linux/cpumask.h \
|
||||||
|
$(wildcard include/config/cpumask/offstack.h) \
|
||||||
|
$(wildcard include/config/debug/per/cpu/maps.h) \
|
||||||
|
include/linux/debugobjects.h \
|
||||||
|
$(wildcard include/config/debug/objects.h) \
|
||||||
|
$(wildcard include/config/debug/objects/free.h) \
|
||||||
|
include/linux/ktime.h \
|
||||||
|
include/linux/jiffies.h \
|
||||||
|
include/linux/timex.h \
|
||||||
|
include/uapi/linux/timex.h \
|
||||||
|
include/uapi/linux/param.h \
|
||||||
|
arch/arm64/include/uapi/asm/param.h \
|
||||||
|
include/asm-generic/param.h \
|
||||||
|
$(wildcard include/config/hz.h) \
|
||||||
|
include/uapi/asm-generic/param.h \
|
||||||
|
arch/arm64/include/asm/timex.h \
|
||||||
|
arch/arm64/include/asm/arch_timer.h \
|
||||||
|
$(wildcard include/config/arm/arch/timer/ool/workaround.h) \
|
||||||
|
include/clocksource/arm_arch_timer.h \
|
||||||
|
$(wildcard include/config/arm/arch/timer.h) \
|
||||||
|
include/linux/timecounter.h \
|
||||||
|
include/asm-generic/timex.h \
|
||||||
|
include/generated/timeconst.h \
|
||||||
|
include/linux/timekeeping.h \
|
||||||
|
include/linux/rcutree.h \
|
||||||
|
include/linux/workqueue.h \
|
||||||
|
$(wildcard include/config/debug/objects/work.h) \
|
||||||
|
$(wildcard include/config/freezer.h) \
|
||||||
|
$(wildcard include/config/wq/watchdog.h) \
|
||||||
|
include/linux/timer.h \
|
||||||
|
$(wildcard include/config/debug/objects/timers.h) \
|
||||||
|
$(wildcard include/config/no/hz/common.h) \
|
||||||
|
include/linux/topology.h \
|
||||||
|
$(wildcard include/config/use/percpu/numa/node/id.h) \
|
||||||
|
$(wildcard include/config/sched/smt.h) \
|
||||||
|
include/linux/smp.h \
|
||||||
|
$(wildcard include/config/up/late/init.h) \
|
||||||
|
include/linux/llist.h \
|
||||||
|
$(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \
|
||||||
|
arch/arm64/include/asm/smp.h \
|
||||||
|
$(wildcard include/config/arm64/acpi/parking/protocol.h) \
|
||||||
|
arch/arm64/include/asm/percpu.h \
|
||||||
|
include/asm-generic/percpu.h \
|
||||||
|
$(wildcard include/config/have/setup/per/cpu/area.h) \
|
||||||
|
include/linux/percpu-defs.h \
|
||||||
|
$(wildcard include/config/debug/force/weak/per/cpu.h) \
|
||||||
|
include/linux/percpu.h \
|
||||||
|
$(wildcard include/config/need/per/cpu/embed/first/chunk.h) \
|
||||||
|
$(wildcard include/config/need/per/cpu/page/first/chunk.h) \
|
||||||
|
arch/arm64/include/asm/topology.h \
|
||||||
|
include/asm-generic/topology.h \
|
||||||
|
include/linux/sysctl.h \
|
||||||
|
$(wildcard include/config/sysctl.h) \
|
||||||
|
include/linux/rbtree.h \
|
||||||
|
include/uapi/linux/sysctl.h \
|
||||||
|
include/linux/elf.h \
|
||||||
|
arch/arm64/include/asm/elf.h \
|
||||||
|
arch/arm64/include/generated/asm/user.h \
|
||||||
|
include/asm-generic/user.h \
|
||||||
|
include/uapi/linux/elf.h \
|
||||||
|
include/uapi/linux/elf-em.h \
|
||||||
|
include/linux/kobject.h \
|
||||||
|
$(wildcard include/config/uevent/helper.h) \
|
||||||
|
$(wildcard include/config/debug/kobject/release.h) \
|
||||||
|
include/linux/sysfs.h \
|
||||||
|
include/linux/kernfs.h \
|
||||||
|
$(wildcard include/config/kernfs.h) \
|
||||||
|
include/linux/idr.h \
|
||||||
|
include/linux/radix-tree.h \
|
||||||
|
$(wildcard include/config/radix/tree/multiorder.h) \
|
||||||
|
include/linux/kobject_ns.h \
|
||||||
|
include/linux/kref.h \
|
||||||
|
include/linux/refcount.h \
|
||||||
|
include/linux/moduleparam.h \
|
||||||
|
$(wildcard include/config/alpha.h) \
|
||||||
|
$(wildcard include/config/ia64.h) \
|
||||||
|
$(wildcard include/config/ppc64.h) \
|
||||||
|
include/linux/rbtree_latch.h \
|
||||||
|
arch/arm64/include/asm/module.h \
|
||||||
|
$(wildcard include/config/arm64/module/plts.h) \
|
||||||
|
$(wildcard include/config/randomize/base.h) \
|
||||||
|
include/asm-generic/module.h \
|
||||||
|
$(wildcard include/config/have/mod/arch/specific.h) \
|
||||||
|
$(wildcard include/config/modules/use/elf/rel.h) \
|
||||||
|
$(wildcard include/config/modules/use/elf/rela.h) \
|
||||||
|
include/linux/fs.h \
|
||||||
|
$(wildcard include/config/fs/posix/acl.h) \
|
||||||
|
$(wildcard include/config/security.h) \
|
||||||
|
$(wildcard include/config/cgroup/writeback.h) \
|
||||||
|
$(wildcard include/config/ima.h) \
|
||||||
|
$(wildcard include/config/fsnotify.h) \
|
||||||
|
$(wildcard include/config/fs/encryption.h) \
|
||||||
|
$(wildcard include/config/epoll.h) \
|
||||||
|
$(wildcard include/config/file/locking.h) \
|
||||||
|
$(wildcard include/config/quota.h) \
|
||||||
|
$(wildcard include/config/fs/dax.h) \
|
||||||
|
$(wildcard include/config/mandatory/file/locking.h) \
|
||||||
|
$(wildcard include/config/block.h) \
|
||||||
|
$(wildcard include/config/migration.h) \
|
||||||
|
include/linux/kdev_t.h \
|
||||||
|
include/uapi/linux/kdev_t.h \
|
||||||
|
include/linux/dcache.h \
|
||||||
|
include/linux/rculist.h \
|
||||||
|
include/linux/rculist_bl.h \
|
||||||
|
include/linux/list_bl.h \
|
||||||
|
include/linux/bit_spinlock.h \
|
||||||
|
include/linux/lockref.h \
|
||||||
|
$(wildcard include/config/arch/use/cmpxchg/lockref.h) \
|
||||||
|
include/linux/stringhash.h \
|
||||||
|
$(wildcard include/config/dcache/word/access.h) \
|
||||||
|
include/linux/hash.h \
|
||||||
|
$(wildcard include/config/have/arch/hash.h) \
|
||||||
|
include/linux/path.h \
|
||||||
|
include/linux/list_lru.h \
|
||||||
|
$(wildcard include/config/slob.h) \
|
||||||
|
include/linux/shrinker.h \
|
||||||
|
include/linux/pid.h \
|
||||||
|
include/linux/capability.h \
|
||||||
|
include/uapi/linux/capability.h \
|
||||||
|
include/linux/semaphore.h \
|
||||||
|
include/uapi/linux/fiemap.h \
|
||||||
|
include/linux/migrate_mode.h \
|
||||||
|
include/linux/percpu-rwsem.h \
|
||||||
|
include/linux/rcuwait.h \
|
||||||
|
include/linux/rcu_sync.h \
|
||||||
|
include/linux/delayed_call.h \
|
||||||
|
include/uapi/linux/fs.h \
|
||||||
|
include/uapi/linux/limits.h \
|
||||||
|
include/uapi/linux/ioctl.h \
|
||||||
|
arch/arm64/include/generated/asm/ioctl.h \
|
||||||
|
include/asm-generic/ioctl.h \
|
||||||
|
include/uapi/asm-generic/ioctl.h \
|
||||||
|
include/linux/quota.h \
|
||||||
|
$(wildcard include/config/quota/netlink/interface.h) \
|
||||||
|
include/linux/percpu_counter.h \
|
||||||
|
include/uapi/linux/dqblk_xfs.h \
|
||||||
|
include/linux/dqblk_v1.h \
|
||||||
|
include/linux/dqblk_v2.h \
|
||||||
|
include/linux/dqblk_qtree.h \
|
||||||
|
include/linux/projid.h \
|
||||||
|
include/uapi/linux/quota.h \
|
||||||
|
include/linux/nfs_fs_i.h \
|
||||||
|
include/linux/fcntl.h \
|
||||||
|
include/uapi/linux/fcntl.h \
|
||||||
|
arch/arm64/include/uapi/asm/fcntl.h \
|
||||||
|
include/uapi/asm-generic/fcntl.h \
|
||||||
|
include/linux/cdev.h \
|
||||||
|
include/linux/gpio.h \
|
||||||
|
$(wildcard include/config/gpiolib.h) \
|
||||||
|
$(wildcard include/config/arch/have/custom/gpio/h.h) \
|
||||||
|
include/linux/pinctrl/pinctrl.h \
|
||||||
|
$(wildcard include/config/pinctrl.h) \
|
||||||
|
$(wildcard include/config/generic/pinconf.h) \
|
||||||
|
$(wildcard include/config/of.h) \
|
||||||
|
include/linux/device.h \
|
||||||
|
$(wildcard include/config/debug/devres.h) \
|
||||||
|
$(wildcard include/config/srcu.h) \
|
||||||
|
$(wildcard include/config/generic/msi/irq/domain.h) \
|
||||||
|
$(wildcard include/config/generic/msi/irq.h) \
|
||||||
|
$(wildcard include/config/dma/cma.h) \
|
||||||
|
$(wildcard include/config/devtmpfs.h) \
|
||||||
|
$(wildcard include/config/sysfs/deprecated.h) \
|
||||||
|
include/linux/ioport.h \
|
||||||
|
include/linux/klist.h \
|
||||||
|
include/linux/pinctrl/devinfo.h \
|
||||||
|
$(wildcard include/config/pm.h) \
|
||||||
|
include/linux/pm.h \
|
||||||
|
$(wildcard include/config/vt/console/sleep.h) \
|
||||||
|
$(wildcard include/config/pm/clk.h) \
|
||||||
|
$(wildcard include/config/pm/generic/domains.h) \
|
||||||
|
include/linux/completion.h \
|
||||||
|
include/linux/ratelimit.h \
|
||||||
|
include/linux/sched.h \
|
||||||
|
$(wildcard include/config/virt/cpu/accounting/native.h) \
|
||||||
|
$(wildcard include/config/sched/info.h) \
|
||||||
|
$(wildcard include/config/schedstats.h) \
|
||||||
|
$(wildcard include/config/fair/group/sched.h) \
|
||||||
|
$(wildcard include/config/rt/group/sched.h) \
|
||||||
|
$(wildcard include/config/cgroup/sched.h) \
|
||||||
|
$(wildcard include/config/blk/dev/io/trace.h) \
|
||||||
|
$(wildcard include/config/compat/brk.h) \
|
||||||
|
$(wildcard include/config/cgroups.h) \
|
||||||
|
$(wildcard include/config/cc/stackprotector.h) \
|
||||||
|
$(wildcard include/config/arch/has/scaled/cputime.h) \
|
||||||
|
$(wildcard include/config/virt/cpu/accounting/gen.h) \
|
||||||
|
$(wildcard include/config/posix/timers.h) \
|
||||||
|
$(wildcard include/config/sysvipc.h) \
|
||||||
|
$(wildcard include/config/detect/hung/task.h) \
|
||||||
|
$(wildcard include/config/auditsyscall.h) \
|
||||||
|
$(wildcard include/config/rt/mutexes.h) \
|
||||||
|
$(wildcard include/config/ubsan.h) \
|
||||||
|
$(wildcard include/config/task/xacct.h) \
|
||||||
|
$(wildcard include/config/cpusets.h) \
|
||||||
|
$(wildcard include/config/intel/rdt/a.h) \
|
||||||
|
$(wildcard include/config/futex.h) \
|
||||||
|
$(wildcard include/config/perf/events.h) \
|
||||||
|
$(wildcard include/config/task/delay/acct.h) \
|
||||||
|
$(wildcard include/config/fault/injection.h) \
|
||||||
|
$(wildcard include/config/latencytop.h) \
|
||||||
|
$(wildcard include/config/function/graph/tracer.h) \
|
||||||
|
$(wildcard include/config/kcov.h) \
|
||||||
|
$(wildcard include/config/uprobes.h) \
|
||||||
|
$(wildcard include/config/bcache.h) \
|
||||||
|
$(wildcard include/config/vmap/stack.h) \
|
||||||
|
include/uapi/linux/sched.h \
|
||||||
|
include/linux/sem.h \
|
||||||
|
include/uapi/linux/sem.h \
|
||||||
|
include/linux/ipc.h \
|
||||||
|
include/uapi/linux/ipc.h \
|
||||||
|
arch/arm64/include/generated/asm/ipcbuf.h \
|
||||||
|
include/uapi/asm-generic/ipcbuf.h \
|
||||||
|
arch/arm64/include/generated/asm/sembuf.h \
|
||||||
|
include/uapi/asm-generic/sembuf.h \
|
||||||
|
include/linux/shm.h \
|
||||||
|
include/uapi/linux/shm.h \
|
||||||
|
arch/arm64/include/generated/asm/shmbuf.h \
|
||||||
|
include/uapi/asm-generic/shmbuf.h \
|
||||||
|
arch/arm64/include/asm/shmparam.h \
|
||||||
|
include/uapi/asm-generic/shmparam.h \
|
||||||
|
include/linux/kcov.h \
|
||||||
|
include/uapi/linux/kcov.h \
|
||||||
|
include/linux/plist.h \
|
||||||
|
$(wildcard include/config/debug/pi/list.h) \
|
||||||
|
include/linux/hrtimer.h \
|
||||||
|
$(wildcard include/config/high/res/timers.h) \
|
||||||
|
$(wildcard include/config/time/low/res.h) \
|
||||||
|
$(wildcard include/config/timerfd.h) \
|
||||||
|
include/linux/timerqueue.h \
|
||||||
|
include/linux/seccomp.h \
|
||||||
|
$(wildcard include/config/seccomp.h) \
|
||||||
|
$(wildcard include/config/have/arch/seccomp/filter.h) \
|
||||||
|
$(wildcard include/config/seccomp/filter.h) \
|
||||||
|
$(wildcard include/config/checkpoint/restore.h) \
|
||||||
|
include/uapi/linux/seccomp.h \
|
||||||
|
include/linux/resource.h \
|
||||||
|
include/uapi/linux/resource.h \
|
||||||
|
arch/arm64/include/generated/asm/resource.h \
|
||||||
|
include/asm-generic/resource.h \
|
||||||
|
include/uapi/asm-generic/resource.h \
|
||||||
|
include/linux/latencytop.h \
|
||||||
|
include/linux/sched/prio.h \
|
||||||
|
include/linux/signal_types.h \
|
||||||
|
$(wildcard include/config/old/sigaction.h) \
|
||||||
|
include/uapi/linux/signal.h \
|
||||||
|
arch/arm64/include/uapi/asm/signal.h \
|
||||||
|
include/asm-generic/signal.h \
|
||||||
|
include/uapi/asm-generic/signal.h \
|
||||||
|
include/uapi/asm-generic/signal-defs.h \
|
||||||
|
arch/arm64/include/uapi/asm/sigcontext.h \
|
||||||
|
arch/arm64/include/uapi/asm/siginfo.h \
|
||||||
|
include/asm-generic/siginfo.h \
|
||||||
|
include/uapi/asm-generic/siginfo.h \
|
||||||
|
include/linux/mm_types_task.h \
|
||||||
|
$(wildcard include/config/split/ptlock/cpus.h) \
|
||||||
|
$(wildcard include/config/arch/enable/split/pmd/ptlock.h) \
|
||||||
|
$(wildcard include/config/arch/want/batched/unmap/tlb/flush.h) \
|
||||||
|
include/linux/task_io_accounting.h \
|
||||||
|
$(wildcard include/config/task/io/accounting.h) \
|
||||||
|
arch/arm64/include/asm/device.h \
|
||||||
|
$(wildcard include/config/iommu/api.h) \
|
||||||
|
include/linux/pm_wakeup.h \
|
||||||
|
include/linux/uaccess.h \
|
||||||
|
arch/arm64/include/asm/uaccess.h \
|
||||||
|
$(wildcard include/config/arm64/pan.h) \
|
||||||
|
arch/arm64/include/asm/kernel-pgtable.h \
|
||||||
|
arch/arm64/include/asm/pgtable.h \
|
||||||
|
$(wildcard include/config/arm64/hw/afdbm.h) \
|
||||||
|
arch/arm64/include/asm/proc-fns.h \
|
||||||
|
arch/arm64/include/asm/pgtable-prot.h \
|
||||||
|
arch/arm64/include/asm/fixmap.h \
|
||||||
|
arch/arm64/include/asm/boot.h \
|
||||||
|
include/asm-generic/fixmap.h \
|
||||||
|
include/asm-generic/pgtable.h \
|
||||||
|
$(wildcard include/config/have/arch/transparent/hugepage/pud.h) \
|
||||||
|
$(wildcard include/config/have/arch/soft/dirty.h) \
|
||||||
|
$(wildcard include/config/have/arch/huge/vmap.h) \
|
||||||
|
include/linux/mm_types.h \
|
||||||
|
$(wildcard include/config/have/cmpxchg/double.h) \
|
||||||
|
$(wildcard include/config/have/aligned/struct/page.h) \
|
||||||
|
$(wildcard include/config/kmemcheck.h) \
|
||||||
|
$(wildcard include/config/userfaultfd.h) \
|
||||||
|
$(wildcard include/config/aio.h) \
|
||||||
|
$(wildcard include/config/mmu/notifier.h) \
|
||||||
|
include/linux/auxvec.h \
|
||||||
|
include/uapi/linux/auxvec.h \
|
||||||
|
arch/arm64/include/uapi/asm/auxvec.h \
|
||||||
|
include/linux/uprobes.h \
|
||||||
|
arch/arm64/include/asm/mmu.h \
|
||||||
|
include/linux/kasan-checks.h \
|
||||||
|
arch/arm64/include/asm/compiler.h \
|
||||||
|
/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/../_common/infrared_sensor.def.h \
|
||||||
|
/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/../_common/infrared_sensor.h \
|
||||||
|
|
||||||
|
/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.o: $(deps_/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.o)
|
||||||
|
|
||||||
|
$(deps_/home/sikienzl/git/resy-ss17-grp1/project/modules/infrared_sensor_in_1/infrared_sensor_in_1.o):
|
||||||
@@ -14,7 +14,6 @@
|
|||||||
#include "../_common/infrared_sensor.def.h"
|
#include "../_common/infrared_sensor.def.h"
|
||||||
|
|
||||||
static unsigned int infrared_sensor_in_1 = 2;
|
static unsigned int infrared_sensor_in_1 = 2;
|
||||||
static unsigned int count = 0;
|
|
||||||
|
|
||||||
static int infrared_sensor_open(struct inode *devfile, struct file *instance)
|
static int infrared_sensor_open(struct inode *devfile, struct file *instance)
|
||||||
{
|
{
|
||||||
@@ -37,26 +36,16 @@ static int infrared_sensor_open(struct inode *devfile, struct file *instance)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static ssize_t infrared_sensor_read( struct file *instance, char __user *user,
|
||||||
static ssize_t infrared_sensor_read( struct file *file, char __user *buffer, size_t length, loff_t *offset)
|
size_t max_bytes_to_read, loff_t *offset)
|
||||||
{
|
{
|
||||||
unsigned long not_copied;
|
unsigned long not_copied, to_copy;
|
||||||
u32 value=0;
|
u32 value = gpio_get_value;
|
||||||
|
|
||||||
|
to_copy = min( max_bytes_to_read, sizeof(value) );
|
||||||
|
not_copied=copy_to_user( user, &value, to_copy);
|
||||||
|
|
||||||
|
return to_copy - not_copied;
|
||||||
printk(KERN_DEBUG DEVICE_NAME ": read");
|
|
||||||
|
|
||||||
if (*offset > 0) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
value = gpio_get_value(infrared_sensor_in_1);
|
|
||||||
|
|
||||||
not_copied = copy_to_user(buffer, &value, count);
|
|
||||||
*offset += count - not_copied;
|
|
||||||
|
|
||||||
return count - not_copied;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int infrared_sensor_close( struct inode *devfile, struct file *instance)
|
static int infrared_sensor_close( struct inode *devfile, struct file *instance)
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#include "../_common/infrared_sensor.def.h"
|
#include "../_common/infrared_sensor.def.h"
|
||||||
|
|
||||||
static unsigned int infrared_sensor_in_2 = 3;
|
static unsigned int infrared_sensor_in_2 = 3;
|
||||||
static unsigned int count = 0;
|
|
||||||
|
|
||||||
static int infrared_sensor_open(struct inode *devfile, struct file *instance)
|
static int infrared_sensor_open(struct inode *devfile, struct file *instance)
|
||||||
{
|
{
|
||||||
@@ -22,41 +22,31 @@ static int infrared_sensor_open(struct inode *devfile, struct file *instance)
|
|||||||
|
|
||||||
err = gpio_request(infrared_sensor_in_2, "rpi-gpio-2");
|
err = gpio_request(infrared_sensor_in_2, "rpi-gpio-2");
|
||||||
if (err) {
|
if (err) {
|
||||||
printk("gpio_request for in_1 failed %d\n", err);
|
printk("gpio_request for in_2 failed %d\n", err);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
err = gpio_direction_input(infrared_sensor_in_2);
|
err = gpio_direction_input(infrared_sensor_in_2);
|
||||||
if (err) {
|
if (err) {
|
||||||
printk("gpio_direction_input for in_1 failed %d\n", err);
|
printk("gpio_direction_input for in_2 failed %d\n", err);
|
||||||
gpio_free(infrared_sensor_in_2);
|
gpio_free(infrared_sensor_in_2);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
printk("gpio 2 successfull configured\n");
|
printk("gpio 3 successfull configured\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static ssize_t infrared_sensor_read( struct file *instance, char __user *user,
|
||||||
static ssize_t infrared_sensor_read( struct file *file, char __user *buffer, size_t length, loff_t *offset)
|
size_t max_bytes_to_read, loff_t *offset)
|
||||||
{
|
{
|
||||||
unsigned long not_copied;
|
unsigned long not_copied, to_copy;
|
||||||
u32 value=0;
|
u32 value = gpio_get_value;
|
||||||
|
|
||||||
|
to_copy = min( max_bytes_to_read, sizeof(value) );
|
||||||
|
not_copied=copy_to_user( user, &value, to_copy);
|
||||||
|
|
||||||
|
return to_copy - not_copied;
|
||||||
printk(KERN_DEBUG DEVICE_NAME ": read");
|
|
||||||
|
|
||||||
if (*offset > 0) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
value = gpio_get_value(infrared_sensor_in_2);
|
|
||||||
|
|
||||||
not_copied = copy_to_user(buffer, &value, count);
|
|
||||||
*offset += count - not_copied;
|
|
||||||
|
|
||||||
return count - not_copied;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int infrared_sensor_close( struct inode *devfile, struct file *instance)
|
static int infrared_sensor_close( struct inode *devfile, struct file *instance)
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
#include "../_common/infrared_sensor.def.h"
|
#include "../_common/infrared_sensor.def.h"
|
||||||
|
|
||||||
static unsigned int infrared_sensor_in_3 = 4;
|
static unsigned int infrared_sensor_in_3 = 4;
|
||||||
static unsigned int count = 0;
|
|
||||||
|
|
||||||
static int infrared_sensor_open(struct inode *devfile, struct file *instance)
|
static int infrared_sensor_open(struct inode *devfile, struct file *instance)
|
||||||
{
|
{
|
||||||
@@ -22,41 +21,31 @@ static int infrared_sensor_open(struct inode *devfile, struct file *instance)
|
|||||||
|
|
||||||
err = gpio_request(infrared_sensor_in_3, "rpi-gpio-2");
|
err = gpio_request(infrared_sensor_in_3, "rpi-gpio-2");
|
||||||
if (err) {
|
if (err) {
|
||||||
printk("gpio_request for in_1 failed %d\n", err);
|
printk("gpio_request for in_3 failed %d\n", err);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
err = gpio_direction_input(infrared_sensor_in_3);
|
err = gpio_direction_input(infrared_sensor_in_3);
|
||||||
if (err) {
|
if (err) {
|
||||||
printk("gpio_direction_input for in_1 failed %d\n", err);
|
printk("gpio_direction_input for in_3 failed %d\n", err);
|
||||||
gpio_free(infrared_sensor_in_3);
|
gpio_free(infrared_sensor_in_3);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
printk("gpio 2 successfull configured\n");
|
printk("gpio 4 successfull configured\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static ssize_t infrared_sensor_read( struct file *instance, char __user *user,
|
||||||
static ssize_t infrared_sensor_read( struct file *file, char __user *buffer, size_t length, loff_t *offset)
|
size_t max_bytes_to_read, loff_t *offset)
|
||||||
{
|
{
|
||||||
unsigned long not_copied;
|
unsigned long not_copied, to_copy;
|
||||||
u32 value=0;
|
u32 value = gpio_get_value;
|
||||||
|
|
||||||
|
to_copy = min( max_bytes_to_read, sizeof(value) );
|
||||||
|
not_copied=copy_to_user( user, &value, to_copy);
|
||||||
|
|
||||||
|
return to_copy - not_copied;
|
||||||
printk(KERN_DEBUG DEVICE_NAME ": read");
|
|
||||||
|
|
||||||
if (*offset > 0) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
value = gpio_get_value(infrared_sensor_in_3);
|
|
||||||
|
|
||||||
not_copied = copy_to_user(buffer, &value, count);
|
|
||||||
*offset += count - not_copied;
|
|
||||||
|
|
||||||
return count - not_copied;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int infrared_sensor_close( struct inode *devfile, struct file *instance)
|
static int infrared_sensor_close( struct inode *devfile, struct file *instance)
|
||||||
|
|||||||
@@ -13,49 +13,39 @@
|
|||||||
|
|
||||||
#include "../_common/infrared_sensor.def.h"
|
#include "../_common/infrared_sensor.def.h"
|
||||||
|
|
||||||
static unsigned int infrared_sensor_in_4 = 18;
|
static unsigned int infrared_sensor_in_4 = 17;
|
||||||
static unsigned int count = 0;
|
|
||||||
|
|
||||||
static int infrared_sensor_open(struct inode *devfile, struct file *instance)
|
static int infrared_sensor_open(struct inode *devfile, struct file *instance)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
err = gpio_request(infrared_sensor_in_4, "rpi-gpio-2");
|
err = gpio_request(infrared_sensor_in_4, "rpi-gpio-17");
|
||||||
if (err) {
|
if (err) {
|
||||||
printk("gpio_request for in_1 failed %d\n", err);
|
printk("gpio_request for in_4 failed %d\n", err);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
err = gpio_direction_input(infrared_sensor_in_4);
|
err = gpio_direction_input(infrared_sensor_in_4);
|
||||||
if (err) {
|
if (err) {
|
||||||
printk("gpio_direction_input for in_1 failed %d\n", err);
|
printk("gpio_direction_input for in_4 failed %d\n", err);
|
||||||
gpio_free(infrared_sensor_in_4);
|
gpio_free(infrared_sensor_in_4);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
printk("gpio 2 successfull configured\n");
|
printk("gpio 17 successfull configured\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t infrared_sensor_read( struct file *file, char __user *buffer, size_t length, loff_t *offset)
|
static ssize_t infrared_sensor_read( struct file *instance, char __user *user,
|
||||||
|
size_t max_bytes_to_read, loff_t *offset)
|
||||||
{
|
{
|
||||||
unsigned long not_copied;
|
unsigned long not_copied, to_copy;
|
||||||
u32 value=0;
|
u32 value = gpio_get_value;
|
||||||
|
|
||||||
|
to_copy = min( max_bytes_to_read, sizeof(value) );
|
||||||
|
not_copied=copy_to_user( user, &value, to_copy);
|
||||||
|
|
||||||
|
return to_copy - not_copied;
|
||||||
printk(KERN_DEBUG DEVICE_NAME ": read");
|
|
||||||
|
|
||||||
if (*offset > 0) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
value = gpio_get_value(infrared_sensor_in_4);
|
|
||||||
|
|
||||||
not_copied = copy_to_user(buffer, &value, count);
|
|
||||||
*offset += count - not_copied;
|
|
||||||
|
|
||||||
return count - not_copied;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int infrared_sensor_close( struct inode *devfile, struct file *instance)
|
static int infrared_sensor_close( struct inode *devfile, struct file *instance)
|
||||||
|
|||||||
134
project/motor.c
134
project/motor.c
@@ -1,134 +0,0 @@
|
|||||||
#include<stdio.h>
|
|
||||||
#include<fcntl.h>
|
|
||||||
#include<string.h>
|
|
||||||
#include<unistd.h>
|
|
||||||
#include<string.h>
|
|
||||||
#include<stdbool.h>
|
|
||||||
#include "gpio.h"
|
|
||||||
|
|
||||||
#define PIN_MOTOR_RECHTS_FORWARD "20"
|
|
||||||
#define PIN_MOTOR_RECHTS_REVERSE "13"
|
|
||||||
#define PIN_MOTOR_LINKS_REVERSE "19"
|
|
||||||
#define PIN_MOTOR_LINKS_FORWARD "26"
|
|
||||||
|
|
||||||
#define MOTOR_ON 1
|
|
||||||
#define MOTOR_OFF 0
|
|
||||||
|
|
||||||
bool motor_rechts_on = false;
|
|
||||||
bool motor_links_on = false;
|
|
||||||
|
|
||||||
void forward(int motorNumber)
|
|
||||||
{
|
|
||||||
if(motorNumber == 1)
|
|
||||||
{
|
|
||||||
writeOutput(PIN_MOTOR_RECHTS_FORWARD, MOTOR_ON);
|
|
||||||
motor_rechts_on = true;
|
|
||||||
}
|
|
||||||
else if(motorNumber == 2)
|
|
||||||
{
|
|
||||||
writeOutput(PIN_MOTOR_LINKS_FORWARD, MOTOR_ON);
|
|
||||||
motor_links_on = true;
|
|
||||||
}
|
|
||||||
else if(motorNumber == 3)
|
|
||||||
{
|
|
||||||
writeOutput(PIN_MOTOR_RECHTS_FORWARD, MOTOR_ON);
|
|
||||||
writeOutput(PIN_MOTOR_LINKS_FORWARD, MOTOR_ON);
|
|
||||||
motor_rechts_on = true;
|
|
||||||
motor_links_on = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void reverse(int motorNumber)
|
|
||||||
{
|
|
||||||
if(motorNumber == 1)
|
|
||||||
{
|
|
||||||
writeOutput(PIN_MOTOR_RECHTS_REVERSE, MOTOR_ON);
|
|
||||||
motor_rechts_on = true;
|
|
||||||
}
|
|
||||||
else if(motorNumber == 2)
|
|
||||||
{
|
|
||||||
writeOutput(PIN_MOTOR_LINKS_REVERSE, MOTOR_ON);
|
|
||||||
motor_links_on = true;
|
|
||||||
}
|
|
||||||
else if(motorNumber == 3)
|
|
||||||
{
|
|
||||||
writeOutput(PIN_MOTOR_RECHTS_REVERSE, MOTOR_ON);
|
|
||||||
writeOutput(PIN_MOTOR_LINKS_REVERSE, MOTOR_ON);
|
|
||||||
motor_rechts_on = true;
|
|
||||||
motor_links_on = true;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void stopMotor(int motorNumber)
|
|
||||||
{
|
|
||||||
if(motorNumber == 1 && motor_rechts_on)
|
|
||||||
{
|
|
||||||
writeOutput(PIN_MOTOR_RECHTS_FORWARD, MOTOR_OFF);
|
|
||||||
writeOutput(PIN_MOTOR_RECHTS_REVERSE, MOTOR_OFF);
|
|
||||||
motor_rechts_on = false;
|
|
||||||
}
|
|
||||||
else if(motorNumber == 2 && motor_links_on)
|
|
||||||
{
|
|
||||||
writeOutput(PIN_MOTOR_LINKS_FORWARD, MOTOR_OFF);
|
|
||||||
writeOutput(PIN_MOTOR_LINKS_REVERSE, MOTOR_OFF);
|
|
||||||
motor_links_on = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
|
||||||
{
|
|
||||||
registerOutput(PIN_MOTOR_RECHTS_FORWARD);
|
|
||||||
registerOutput(PIN_MOTOR_RECHTS_REVERSE);
|
|
||||||
registerOutput(PIN_MOTOR_LINKS_FORWARD);
|
|
||||||
registerOutput(PIN_MOTOR_LINKS_REVERSE);
|
|
||||||
|
|
||||||
|
|
||||||
if(argc > 0)
|
|
||||||
{
|
|
||||||
if(strcmp(argv[1],"1")==0)
|
|
||||||
{
|
|
||||||
//motor_rechts_forward
|
|
||||||
forward(1);
|
|
||||||
}
|
|
||||||
else if(strcmp(argv[1],"2")==0)
|
|
||||||
{
|
|
||||||
//motor_links_forward
|
|
||||||
forward(2);
|
|
||||||
}
|
|
||||||
else if(strcmp(argv[1],"3")==0)
|
|
||||||
{
|
|
||||||
//motor_rechts_reverse
|
|
||||||
reverse(1);
|
|
||||||
}
|
|
||||||
else if(strcmp(argv[1],"4")==0)
|
|
||||||
{
|
|
||||||
//motor_links_reverse
|
|
||||||
reverse(2);
|
|
||||||
}
|
|
||||||
else if(strcmp(argv[1],"5")==0)
|
|
||||||
{
|
|
||||||
|
|
||||||
forward(3);
|
|
||||||
}
|
|
||||||
else if(strcmp(argv[1],"6")==0)
|
|
||||||
{
|
|
||||||
//motor_rechts_forward stop
|
|
||||||
stopMotor(1);
|
|
||||||
}
|
|
||||||
else if(strcmp(argv[1],"7")==0)
|
|
||||||
{
|
|
||||||
//motor_links_forward stop
|
|
||||||
stopMotor(2);
|
|
||||||
}
|
|
||||||
else if(strcmp(argv[1],"0")==0)
|
|
||||||
{
|
|
||||||
freePin(PIN_MOTOR_RECHTS_FORWARD);
|
|
||||||
freePin(PIN_MOTOR_RECHTS_REVERSE);
|
|
||||||
freePin(PIN_MOTOR_LINKS_FORWARD);
|
|
||||||
freePin(PIN_MOTOR_LINKS_REVERSE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,323 +0,0 @@
|
|||||||
/**
|
|
||||||
* MFRC522.h - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
|
|
||||||
* Based on code Dr.Leong ( WWW.B2CQSHOP.COM )
|
|
||||||
* Created by Miguel Balboa (circuitito.com), Jan, 2012.
|
|
||||||
* Rewritten by Søren Thing Andersen (access.thing.dk), fall of 2013 (Translation to English, refactored, comments, anti collision, cascade levels.)
|
|
||||||
* Extended by Tom Clement with functionality to write to sector 0 of UID changeable Mifare cards.
|
|
||||||
* Released into the public domain.
|
|
||||||
*
|
|
||||||
|
|
||||||
|
|
||||||
-- Repurposed to fit Raspberry Pi ---
|
|
||||||
|
|
||||||
*/
|
|
||||||
#ifndef MFRC522_h
|
|
||||||
#define MFRC522_h
|
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string>
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
typedef uint8_t byte;
|
|
||||||
typedef uint16_t word;
|
|
||||||
|
|
||||||
// Firmware data for self-test
|
|
||||||
// Reference values based on firmware version; taken from 16.1.1 in spec.
|
|
||||||
// Version 1.0
|
|
||||||
|
|
||||||
const byte MFRC522_firmware_referenceV1_0[] = {
|
|
||||||
0x00, 0xC6, 0x37, 0xD5, 0x32, 0xB7, 0x57, 0x5C,
|
|
||||||
0xC2, 0xD8, 0x7C, 0x4D, 0xD9, 0x70, 0xC7, 0x73,
|
|
||||||
0x10, 0xE6, 0xD2, 0xAA, 0x5E, 0xA1, 0x3E, 0x5A,
|
|
||||||
0x14, 0xAF, 0x30, 0x61, 0xC9, 0x70, 0xDB, 0x2E,
|
|
||||||
0x64, 0x22, 0x72, 0xB5, 0xBD, 0x65, 0xF4, 0xEC,
|
|
||||||
0x22, 0xBC, 0xD3, 0x72, 0x35, 0xCD, 0xAA, 0x41,
|
|
||||||
0x1F, 0xA7, 0xF3, 0x53, 0x14, 0xDE, 0x7E, 0x02,
|
|
||||||
0xD9, 0x0F, 0xB5, 0x5E, 0x25, 0x1D, 0x29, 0x79
|
|
||||||
};
|
|
||||||
|
|
||||||
// Version 2.0
|
|
||||||
const byte MFRC522_firmware_referenceV2_0[] = {
|
|
||||||
0x00, 0xEB, 0x66, 0xBA, 0x57, 0xBF, 0x23, 0x95,
|
|
||||||
0xD0, 0xE3, 0x0D, 0x3D, 0x27, 0x89, 0x5C, 0xDE,
|
|
||||||
0x9D, 0x3B, 0xA7, 0x00, 0x21, 0x5B, 0x89, 0x82,
|
|
||||||
0x51, 0x3A, 0xEB, 0x02, 0x0C, 0xA5, 0x00, 0x49,
|
|
||||||
0x7C, 0x84, 0x4D, 0xB3, 0xCC, 0xD2, 0x1B, 0x81,
|
|
||||||
0x5D, 0x48, 0x76, 0xD5, 0x71, 0x61, 0x21, 0xA9,
|
|
||||||
0x86, 0x96, 0x83, 0x38, 0xCF, 0x9D, 0x5B, 0x6D,
|
|
||||||
0xDC, 0x15, 0xBA, 0x3E, 0x7D, 0x95, 0x3B, 0x2F
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MFRC522 {
|
|
||||||
public:
|
|
||||||
// MFRC522 registers. Described in chapter 9 of the datasheet.
|
|
||||||
// When using SPI all addresses are shifted one bit left in the "SPI address byte" (section 8.1.2.3)
|
|
||||||
enum PCD_Register {
|
|
||||||
// Page 0: Command and status
|
|
||||||
// 0x00 // reserved for future use
|
|
||||||
CommandReg = 0x01 << 1, // starts and stops command execution
|
|
||||||
ComIEnReg = 0x02 << 1, // enable and disable interrupt request control bits
|
|
||||||
DivIEnReg = 0x03 << 1, // enable and disable interrupt request control bits
|
|
||||||
ComIrqReg = 0x04 << 1, // interrupt request bits
|
|
||||||
DivIrqReg = 0x05 << 1, // interrupt request bits
|
|
||||||
ErrorReg = 0x06 << 1, // error bits showing the error status of the last command executed
|
|
||||||
Status1Reg = 0x07 << 1, // communication status bits
|
|
||||||
Status2Reg = 0x08 << 1, // receiver and transmitter status bits
|
|
||||||
FIFODataReg = 0x09 << 1, // input and output of 64 byte FIFO buffer
|
|
||||||
FIFOLevelReg = 0x0A << 1, // number of bytes stored in the FIFO buffer
|
|
||||||
WaterLevelReg = 0x0B << 1, // level for FIFO underflow and overflow warning
|
|
||||||
ControlReg = 0x0C << 1, // miscellaneous control registers
|
|
||||||
BitFramingReg = 0x0D << 1, // adjustments for bit-oriented frames
|
|
||||||
CollReg = 0x0E << 1, // bit position of the first bit-collision detected on the RF interface
|
|
||||||
// 0x0F // reserved for future use
|
|
||||||
|
|
||||||
// Page 1: Command
|
|
||||||
// 0x10 // reserved for future use
|
|
||||||
ModeReg = 0x11 << 1, // defines general modes for transmitting and receiving
|
|
||||||
TxModeReg = 0x12 << 1, // defines transmission data rate and framing
|
|
||||||
RxModeReg = 0x13 << 1, // defines reception data rate and framing
|
|
||||||
TxControlReg = 0x14 << 1, // controls the logical behavior of the antenna driver pins TX1 and TX2
|
|
||||||
TxASKReg = 0x15 << 1, // controls the setting of the transmission modulation
|
|
||||||
TxSelReg = 0x16 << 1, // selects the internal sources for the antenna driver
|
|
||||||
RxSelReg = 0x17 << 1, // selects internal receiver settings
|
|
||||||
RxThresholdReg = 0x18 << 1, // selects thresholds for the bit decoder
|
|
||||||
DemodReg = 0x19 << 1, // defines demodulator settings
|
|
||||||
// 0x1A // reserved for future use
|
|
||||||
// 0x1B // reserved for future use
|
|
||||||
MfTxReg = 0x1C << 1, // controls some MIFARE communication transmit parameters
|
|
||||||
MfRxReg = 0x1D << 1, // controls some MIFARE communication receive parameters
|
|
||||||
// 0x1E // reserved for future use
|
|
||||||
SerialSpeedReg = 0x1F << 1, // selects the speed of the serial UART interface
|
|
||||||
|
|
||||||
// Page 2: Configuration
|
|
||||||
// 0x20 // reserved for future use
|
|
||||||
CRCResultRegH = 0x21 << 1, // shows the MSB and LSB values of the CRC calculation
|
|
||||||
CRCResultRegL = 0x22 << 1,
|
|
||||||
// 0x23 // reserved for future use
|
|
||||||
ModWidthReg = 0x24 << 1, // controls the ModWidth setting?
|
|
||||||
// 0x25 // reserved for future use
|
|
||||||
RFCfgReg = 0x26 << 1, // configures the receiver gain
|
|
||||||
GsNReg = 0x27 << 1, // selects the conductance of the antenna driver pins TX1 and TX2 for modulation
|
|
||||||
CWGsPReg = 0x28 << 1, // defines the conductance of the p-driver output during periods of no modulation
|
|
||||||
ModGsPReg = 0x29 << 1, // defines the conductance of the p-driver output during periods of modulation
|
|
||||||
TModeReg = 0x2A << 1, // defines settings for the internal timer
|
|
||||||
TPrescalerReg = 0x2B << 1, // the lower 8 bits of the TPrescaler value. The 4 high bits are in TModeReg.
|
|
||||||
TReloadRegH = 0x2C << 1, // defines the 16-bit timer reload value
|
|
||||||
TReloadRegL = 0x2D << 1,
|
|
||||||
TCounterValueRegH = 0x2E << 1, // shows the 16-bit timer value
|
|
||||||
TCounterValueRegL = 0x2F << 1,
|
|
||||||
|
|
||||||
// Page 3: Test Registers
|
|
||||||
// 0x30 // reserved for future use
|
|
||||||
TestSel1Reg = 0x31 << 1, // general test signal configuration
|
|
||||||
TestSel2Reg = 0x32 << 1, // general test signal configuration
|
|
||||||
TestPinEnReg = 0x33 << 1, // enables pin output driver on pins D1 to D7
|
|
||||||
TestPinValueReg = 0x34 << 1, // defines the values for D1 to D7 when it is used as an I/O bus
|
|
||||||
TestBusReg = 0x35 << 1, // shows the status of the internal test bus
|
|
||||||
AutoTestReg = 0x36 << 1, // controls the digital self test
|
|
||||||
VersionReg = 0x37 << 1, // shows the software version
|
|
||||||
AnalogTestReg = 0x38 << 1, // controls the pins AUX1 and AUX2
|
|
||||||
TestDAC1Reg = 0x39 << 1, // defines the test value for TestDAC1
|
|
||||||
TestDAC2Reg = 0x3A << 1, // defines the test value for TestDAC2
|
|
||||||
TestADCReg = 0x3B << 1 // shows the value of ADC I and Q channels
|
|
||||||
// 0x3C // reserved for production tests
|
|
||||||
// 0x3D // reserved for production tests
|
|
||||||
// 0x3E // reserved for production tests
|
|
||||||
// 0x3F // reserved for production tests
|
|
||||||
};
|
|
||||||
|
|
||||||
// MFRC522 commands. Described in chapter 10 of the datasheet.
|
|
||||||
enum PCD_Command {
|
|
||||||
PCD_Idle = 0x00, // no action, cancels current command execution
|
|
||||||
PCD_Mem = 0x01, // stores 25 bytes into the internal buffer
|
|
||||||
PCD_GenerateRandomID = 0x02, // generates a 10-byte random ID number
|
|
||||||
PCD_CalcCRC = 0x03, // activates the CRC coprocessor or performs a self test
|
|
||||||
PCD_Transmit = 0x04, // transmits data from the FIFO buffer
|
|
||||||
PCD_NoCmdChange = 0x07, // no command change, can be used to modify the CommandReg register bits without affecting the command, for example, the PowerDown bit
|
|
||||||
PCD_Receive = 0x08, // activates the receiver circuits
|
|
||||||
PCD_Transceive = 0x0C, // transmits data from FIFO buffer to antenna and automatically activates the receiver after transmission
|
|
||||||
PCD_MFAuthent = 0x0E, // performs the MIFARE standard authentication as a reader
|
|
||||||
PCD_SoftReset = 0x0F // resets the MFRC522
|
|
||||||
};
|
|
||||||
|
|
||||||
// MFRC522 RxGain[2:0] masks, defines the receiver's signal voltage gain factor (on the PCD).
|
|
||||||
// Described in 9.3.3.6 / table 98 of the datasheet at http://www.nxp.com/documents/data_sheet/MFRC522.pdf
|
|
||||||
enum PCD_RxGain {
|
|
||||||
RxGain_18dB = 0x00 << 4, // 000b - 18 dB, minimum
|
|
||||||
RxGain_23dB = 0x01 << 4, // 001b - 23 dB
|
|
||||||
RxGain_18dB_2 = 0x02 << 4, // 010b - 18 dB, it seems 010b is a duplicate for 000b
|
|
||||||
RxGain_23dB_2 = 0x03 << 4, // 011b - 23 dB, it seems 011b is a duplicate for 001b
|
|
||||||
RxGain_33dB = 0x04 << 4, // 100b - 33 dB, average, and typical default
|
|
||||||
RxGain_38dB = 0x05 << 4, // 101b - 38 dB
|
|
||||||
RxGain_43dB = 0x06 << 4, // 110b - 43 dB
|
|
||||||
RxGain_48dB = 0x07 << 4, // 111b - 48 dB, maximum
|
|
||||||
RxGain_min = 0x00 << 4, // 000b - 18 dB, minimum, convenience for RxGain_18dB
|
|
||||||
RxGain_avg = 0x04 << 4, // 100b - 33 dB, average, convenience for RxGain_33dB
|
|
||||||
RxGain_max = 0x07 << 4 // 111b - 48 dB, maximum, convenience for RxGain_48dB
|
|
||||||
};
|
|
||||||
|
|
||||||
// Commands sent to the PICC.
|
|
||||||
enum PICC_Command {
|
|
||||||
// The commands used by the PCD to manage communication with several PICCs (ISO 14443-3, Type A, section 6.4)
|
|
||||||
PICC_CMD_REQA = 0x26, // REQuest command, Type A. Invites PICCs in state IDLE to go to READY and prepare for anticollision or selection. 7 bit frame.
|
|
||||||
PICC_CMD_WUPA = 0x52, // Wake-UP command, Type A. Invites PICCs in state IDLE and HALT to go to READY(*) and prepare for anticollision or selection. 7 bit frame.
|
|
||||||
PICC_CMD_CT = 0x88, // Cascade Tag. Not really a command, but used during anti collision.
|
|
||||||
PICC_CMD_SEL_CL1 = 0x93, // Anti collision/Select, Cascade Level 1
|
|
||||||
PICC_CMD_SEL_CL2 = 0x95, // Anti collision/Select, Cascade Level 2
|
|
||||||
PICC_CMD_SEL_CL3 = 0x97, // Anti collision/Select, Cascade Level 3
|
|
||||||
PICC_CMD_HLTA = 0x50, // HaLT command, Type A. Instructs an ACTIVE PICC to go to state HALT.
|
|
||||||
// The commands used for MIFARE Classic (from http://www.nxp.com/documents/data_sheet/MF1S503x.pdf, Section 9)
|
|
||||||
// Use PCD_MFAuthent to authenticate access to a sector, then use these commands to read/write/modify the blocks on the sector.
|
|
||||||
// The read/write commands can also be used for MIFARE Ultralight.
|
|
||||||
PICC_CMD_MF_AUTH_KEY_A = 0x60, // Perform authentication with Key A
|
|
||||||
PICC_CMD_MF_AUTH_KEY_B = 0x61, // Perform authentication with Key B
|
|
||||||
PICC_CMD_MF_READ = 0x30, // Reads one 16 byte block from the authenticated sector of the PICC. Also used for MIFARE Ultralight.
|
|
||||||
PICC_CMD_MF_WRITE = 0xA0, // Writes one 16 byte block to the authenticated sector of the PICC. Called "COMPATIBILITY WRITE" for MIFARE Ultralight.
|
|
||||||
PICC_CMD_MF_DECREMENT = 0xC0, // Decrements the contents of a block and stores the result in the internal data register.
|
|
||||||
PICC_CMD_MF_INCREMENT = 0xC1, // Increments the contents of a block and stores the result in the internal data register.
|
|
||||||
PICC_CMD_MF_RESTORE = 0xC2, // Reads the contents of a block into the internal data register.
|
|
||||||
PICC_CMD_MF_TRANSFER = 0xB0, // Writes the contents of the internal data register to a block.
|
|
||||||
// The commands used for MIFARE Ultralight (from http://www.nxp.com/documents/data_sheet/MF0ICU1.pdf, Section 8.6)
|
|
||||||
// The PICC_CMD_MF_READ and PICC_CMD_MF_WRITE can also be used for MIFARE Ultralight.
|
|
||||||
PICC_CMD_UL_WRITE = 0xA2 // Writes one 4 byte page to the PICC.
|
|
||||||
};
|
|
||||||
|
|
||||||
// MIFARE constants that does not fit anywhere else
|
|
||||||
enum MIFARE_Misc {
|
|
||||||
MF_ACK = 0xA, // The MIFARE Classic uses a 4 bit ACK/NAK. Any other value than 0xA is NAK.
|
|
||||||
MF_KEY_SIZE = 6 // A Mifare Crypto1 key is 6 bytes.
|
|
||||||
};
|
|
||||||
|
|
||||||
// PICC types we can detect. Remember to update PICC_GetTypeName() if you add more.
|
|
||||||
enum PICC_Type {
|
|
||||||
PICC_TYPE_UNKNOWN = 0,
|
|
||||||
PICC_TYPE_ISO_14443_4 = 1, // PICC compliant with ISO/IEC 14443-4
|
|
||||||
PICC_TYPE_ISO_18092 = 2, // PICC compliant with ISO/IEC 18092 (NFC)
|
|
||||||
PICC_TYPE_MIFARE_MINI = 3, // MIFARE Classic protocol, 320 bytes
|
|
||||||
PICC_TYPE_MIFARE_1K = 4, // MIFARE Classic protocol, 1KB
|
|
||||||
PICC_TYPE_MIFARE_4K = 5, // MIFARE Classic protocol, 4KB
|
|
||||||
PICC_TYPE_MIFARE_UL = 6, // MIFARE Ultralight or Ultralight C
|
|
||||||
PICC_TYPE_MIFARE_PLUS = 7, // MIFARE Plus
|
|
||||||
PICC_TYPE_TNP3XXX = 8, // Only mentioned in NXP AN 10833 MIFARE Type Identification Procedure
|
|
||||||
PICC_TYPE_NOT_COMPLETE = 255 // SAK indicates UID is not complete.
|
|
||||||
};
|
|
||||||
|
|
||||||
// Return codes from the functions in this class. Remember to update GetStatusCodeName() if you add more.
|
|
||||||
enum StatusCode {
|
|
||||||
STATUS_OK = 1, // Success
|
|
||||||
STATUS_ERROR = 2, // Error in communication
|
|
||||||
STATUS_COLLISION = 3, // Collission detected
|
|
||||||
STATUS_TIMEOUT = 4, // Timeout in communication.
|
|
||||||
STATUS_NO_ROOM = 5, // A buffer is not big enough.
|
|
||||||
STATUS_INTERNAL_ERROR = 6, // Internal error in the code. Should not happen ;-)
|
|
||||||
STATUS_INVALID = 7, // Invalid argument.
|
|
||||||
STATUS_CRC_WRONG = 8, // The CRC_A does not match
|
|
||||||
STATUS_MIFARE_NACK = 9 // A MIFARE PICC responded with NAK.
|
|
||||||
};
|
|
||||||
|
|
||||||
// A struct used for passing the UID of a PICC.
|
|
||||||
typedef struct {
|
|
||||||
byte size; // Number of bytes in the UID. 4, 7 or 10.
|
|
||||||
byte uidByte[10];
|
|
||||||
byte sak; // The SAK (Select acknowledge) byte returned from the PICC after successful selection.
|
|
||||||
} Uid;
|
|
||||||
|
|
||||||
// A struct used for passing a MIFARE Crypto1 key
|
|
||||||
typedef struct {
|
|
||||||
byte keyByte[MF_KEY_SIZE];
|
|
||||||
} MIFARE_Key;
|
|
||||||
|
|
||||||
// Member variables
|
|
||||||
Uid uid; // Used by PICC_ReadCardSerial().
|
|
||||||
|
|
||||||
// Size of the MFRC522 FIFO
|
|
||||||
static const byte FIFO_SIZE = 64; // The FIFO is 64 bytes.
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Functions for setting up the Raspberry Pi
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
MFRC522();
|
|
||||||
void setSPIConfig();
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Basic interface functions for communicating with the MFRC522
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
void PCD_WriteRegister(byte reg, byte value);
|
|
||||||
void PCD_WriteRegister(byte reg, byte count, byte *values);
|
|
||||||
byte PCD_ReadRegister(byte reg);
|
|
||||||
void PCD_ReadRegister(byte reg, byte count, byte *values, byte rxAlign = 0);
|
|
||||||
void setBitMask(unsigned char reg, unsigned char mask);
|
|
||||||
void PCD_SetRegisterBitMask(byte reg, byte mask);
|
|
||||||
void PCD_ClearRegisterBitMask(byte reg, byte mask);
|
|
||||||
byte PCD_CalculateCRC(byte *data, byte length, byte *result);
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Functions for manipulating the MFRC522
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
void PCD_Init();
|
|
||||||
void PCD_Reset();
|
|
||||||
void PCD_AntennaOn();
|
|
||||||
void PCD_AntennaOff();
|
|
||||||
byte PCD_GetAntennaGain();
|
|
||||||
void PCD_SetAntennaGain(byte mask);
|
|
||||||
bool PCD_PerformSelfTest();
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Functions for communicating with PICCs
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
byte PCD_TransceiveData(byte *sendData, byte sendLen, byte *backData, byte *backLen, byte *validBits = NULL, byte rxAlign = 0, bool checkCRC = false);
|
|
||||||
byte PCD_CommunicateWithPICC(byte command, byte waitIRq, byte *sendData, byte sendLen, byte *backData = NULL, byte *backLen = NULL, byte *validBits = NULL, byte rxAlign = 0, bool checkCRC = false);
|
|
||||||
byte PICC_RequestA(byte *bufferATQA, byte *bufferSize);
|
|
||||||
byte PICC_WakeupA(byte *bufferATQA, byte *bufferSize);
|
|
||||||
byte PICC_REQA_or_WUPA(byte command, byte *bufferATQA, byte *bufferSize);
|
|
||||||
byte PICC_Select(Uid *uid, byte validBits = 0);
|
|
||||||
byte PICC_HaltA();
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Functions for communicating with MIFARE PICCs
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
byte PCD_Authenticate(byte command, byte blockAddr, MIFARE_Key *key, Uid *uid);
|
|
||||||
void PCD_StopCrypto1();
|
|
||||||
byte MIFARE_Read(byte blockAddr, byte *buffer, byte *bufferSize);
|
|
||||||
byte MIFARE_Write(byte blockAddr, byte *buffer, byte bufferSize);
|
|
||||||
byte MIFARE_Decrement(byte blockAddr, long delta);
|
|
||||||
byte MIFARE_Increment(byte blockAddr, long delta);
|
|
||||||
byte MIFARE_Restore(byte blockAddr);
|
|
||||||
byte MIFARE_Transfer(byte blockAddr);
|
|
||||||
byte MIFARE_Ultralight_Write(byte page, byte *buffer, byte bufferSize);
|
|
||||||
byte MIFARE_GetValue(byte blockAddr, long *value);
|
|
||||||
byte MIFARE_SetValue(byte blockAddr, long value);
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Support functions
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
byte PCD_MIFARE_Transceive(byte *sendData, byte sendLen, bool acceptTimeout = false);
|
|
||||||
// old function used too much memory, now name moved to flash; if you need char, copy from flash to memory
|
|
||||||
//const char *GetStatusCodeName(byte code);
|
|
||||||
const string GetStatusCodeName(byte code);
|
|
||||||
byte PICC_GetType(byte sak);
|
|
||||||
// old function used too much memory, now name moved to flash; if you need char, copy from flash to memory
|
|
||||||
//const char *PICC_GetTypeName(byte type);
|
|
||||||
const string PICC_GetTypeName(byte type);
|
|
||||||
void PICC_DumpToSerial(Uid *uid);
|
|
||||||
void PICC_DumpMifareClassicToSerial(Uid *uid, byte piccType, MIFARE_Key *key);
|
|
||||||
void PICC_DumpMifareClassicSectorToSerial(Uid *uid, MIFARE_Key *key, byte sector);
|
|
||||||
void PICC_DumpMifareUltralightToSerial();
|
|
||||||
void MIFARE_SetAccessBits(byte *accessBitBuffer, byte g0, byte g1, byte g2, byte g3);
|
|
||||||
bool MIFARE_OpenUidBackdoor(bool logErrors);
|
|
||||||
bool MIFARE_SetUid(byte *newUid, byte uidSize, bool logErrors);
|
|
||||||
bool MIFARE_UnbrickUidSector(bool logErrors);
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Convenience functions - does not add extra functionality
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
bool PICC_IsNewCardPresent();
|
|
||||||
bool PICC_ReadCardSerial();
|
|
||||||
|
|
||||||
private:
|
|
||||||
byte MIFARE_TwoStepHelper(byte command, byte blockAddr, long data);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,54 +0,0 @@
|
|||||||
#include "rfid_reader.hpp"
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <iostream>
|
|
||||||
#include <chrono>
|
|
||||||
#include <ctime>
|
|
||||||
|
|
||||||
rfid_reader::rfid_reader()
|
|
||||||
{
|
|
||||||
mfrc.PCD_Init();
|
|
||||||
thread = std::thread(&rfid_reader::loop, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
rfid_reader::~rfid_reader()
|
|
||||||
{
|
|
||||||
stop_thread = true;
|
|
||||||
thread.join();
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t rfid_reader::last_id() const
|
|
||||||
{
|
|
||||||
return uid;
|
|
||||||
}
|
|
||||||
|
|
||||||
void rfid_reader::loop()
|
|
||||||
{
|
|
||||||
stop_thread = false;
|
|
||||||
while(!stop_thread)
|
|
||||||
{
|
|
||||||
if(!mfrc.PICC_IsNewCardPresent())
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if(!mfrc.PICC_ReadCardSerial())
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uid = int((unsigned char)(mfrc.uid.uidByte[0]) << 24 |
|
|
||||||
(unsigned char)(mfrc.uid.uidByte[1]) << 16 |
|
|
||||||
(unsigned char)(mfrc.uid.uidByte[2]) << 8 |
|
|
||||||
(unsigned char)(mfrc.uid.uidByte[3]));
|
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
printf("\n");
|
|
||||||
std::time_t result = std::time(nullptr);
|
|
||||||
std::cout << std::asctime(std::localtime(&result));
|
|
||||||
printf("%X\n", last_id());
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::this_thread::sleep_for(1s);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
#ifndef RFIDREADER_HPP_
|
|
||||||
#define RFIDREADER_HPP_
|
|
||||||
|
|
||||||
#include <cstdint>
|
|
||||||
#include <thread>
|
|
||||||
|
|
||||||
#include "MFRC522.h"
|
|
||||||
|
|
||||||
class rfid_reader
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
uint32_t last_id() const;
|
|
||||||
rfid_reader();
|
|
||||||
rfid_reader(const rfid_reader &) = delete;
|
|
||||||
rfid_reader(const rfid_reader &&) = delete;
|
|
||||||
~rfid_reader();
|
|
||||||
void loop();
|
|
||||||
private:
|
|
||||||
MFRC522 mfrc;
|
|
||||||
uint32_t uid;
|
|
||||||
std::thread thread;
|
|
||||||
bool stop_thread;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
How to enable the SPI Interface:
|
|
||||||
|
|
||||||
edit /boot/config.txt
|
|
||||||
|
|
||||||
add line dtparam=spi=on
|
|
||||||
Reference in New Issue
Block a user