Fix 'make check' target so it builds.
Test: make check Test: build android Change-Id: I8e998651402f8243ee4d222a5a2518adeeb4ace7
This commit is contained in:
parent
11f671ae84
commit
09bf0ed096
3 changed files with 7 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,6 +9,7 @@
|
|||
lex.yy.c
|
||||
*.lex.c
|
||||
.*.swp
|
||||
dtc-parser.h
|
||||
/dtc
|
||||
/fdtdump
|
||||
/convert-dtsv0
|
||||
|
|
4
Makefile
4
Makefile
|
@ -381,4 +381,8 @@ clean: libfdt_clean pylibfdt_clean tests_clean
|
|||
@$(VECHO) BISON $@
|
||||
$(BISON) -b $(basename $(basename $@)) -d $<
|
||||
|
||||
# Some checks expect dtc-parser.h, so create link
|
||||
dtc-parser.h: dtc-parser.tab.h
|
||||
ln -s $^ $@
|
||||
|
||||
FORCE:
|
||||
|
|
|
@ -31,13 +31,10 @@
|
|||
#include "libacpi.h"
|
||||
|
||||
uint8_t acpi_csum(const void *base, int n) {
|
||||
uint8_t *p;
|
||||
uint8_t sum;
|
||||
const uint8_t *p = base;
|
||||
uint8_t sum = 0;
|
||||
int bytesDone;
|
||||
|
||||
p = (uint8_t*)base;
|
||||
|
||||
sum = 0;
|
||||
for (bytesDone = 0; bytesDone < n; bytesDone++) {
|
||||
sum += *p;
|
||||
p++;
|
||||
|
|
Loading…
Reference in a new issue