//
#
# memtester-4.3.0
#
memtester-4.3.0$ ls
BUGS extra-libs.sh make-makelib.sh README.tests types.h
CHANGELOG find-systype.sh memtester.8 sizes.h warn-auto.sh
conf-cc make-compile.sh memtester.c tests.c
conf-ld Makefile memtester.h tests.h
COPYING make-load.sh README trycpp.c
#
# memtester.c tests.c **.h 加入common文件夹
#
#include <memtester/types.h>
#include <memtester/sizes.h>
#include <memtester/tests.h>
#
# commom/Makefile 添加编译对象
#
obj-y += memtester.o
obj-y += tests.o
#
# 报错memtester.c赋值前后类型不匹配
#
:~/amlogic/odroid-c4/u-boot$ make
CC common/memtester.o
../common/memtester.c: In function ‘do_memtester’:
../common/memtester.c:86:7: error: assignment makes pointer from integer without a cast [-Werror]
bufa = (ulv)simple_strtoul(argv[1], NULL, 16);
^
../common/memtester.c:91:2: error: format ‘%x’ expects argument of t