Add analysis op->type annotations (rebased)
Remove parse_adsp219x.c - r2 6.x has no external parse plugin API. The 'asm.parser not found' warning is cosmetic and can be suppressed with 'e asm.parser=null' in ~/.radare2rc. Update Makefile to match upstream changes.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
NAME ?= asm_adsp219x
|
||||
CC ?= gcc
|
||||
CC ?= cc
|
||||
CFLAGS ?= -Wall -Wextra -O2 -fPIC
|
||||
LDFLAGS ?=
|
||||
LDLIBS ?= -lr_arch -lr_util
|
||||
|
||||
R2_PLUGINS := $(shell r2 -H R2_USER_PLUGINS)
|
||||
R2_INCDIR := $(shell r2 -H R2_INCDIR)
|
||||
@@ -10,24 +8,24 @@ R2_LIBDIR := $(shell r2 -H R2_LIBDIR)
|
||||
|
||||
CPPFLAGS += -I$(R2_INCDIR) -I$(R2_INCDIR)/sdb
|
||||
|
||||
all: $(NAME).so
|
||||
all: asm_adsp219x.so
|
||||
|
||||
$(NAME).so: $(NAME).c
|
||||
asm_adsp219x.so: asm_adsp219x.c
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -shared $(LDFLAGS) \
|
||||
-L$(R2_LIBDIR) \
|
||||
$< -o $@ $(LDLIBS)
|
||||
$< -o $@ -lr_arch -lr_util
|
||||
|
||||
test: $(NAME).so
|
||||
r2 -q -a adsp219x -L ./$(NAME).so -b 24 -c "pd 48" ../examples/isa_test.bin >/dev/null
|
||||
test: asm_adsp219x.so
|
||||
r2 -q -a adsp219x -b 24 -c "pd 48" ../examples/isa_test.bin >/dev/null
|
||||
|
||||
install: $(NAME).so
|
||||
install: all
|
||||
mkdir -p $(R2_PLUGINS)
|
||||
cp -f $(NAME).so $(R2_PLUGINS)/
|
||||
cp -f asm_adsp219x.so $(R2_PLUGINS)/
|
||||
|
||||
uninstall:
|
||||
rm -f $(R2_PLUGINS)/$(NAME).so
|
||||
rm -f $(R2_PLUGINS)/asm_adsp219x.so
|
||||
|
||||
clean:
|
||||
rm -f $(NAME).so
|
||||
rm -f asm_adsp219x.so
|
||||
|
||||
.PHONY: all test install uninstall clean
|
||||
|
||||
Reference in New Issue
Block a user