Hi,
I am new to OpenWrt build environment.
I am creating custom package for TP-Link WDR4300 based on attitude_adjustment.
I am using functions from other package (libnetfilter queue) in my package.
compilation goes through fine. But in linking stage build crashes. Obviously linker is not able to find those references.
I have defined "DEPENDS:=+libnetfilter_queue" in the Makefile available in the packages directory. Build still crashes.
I am not clear with how to define the dependencies.
what modifications are required in the Makefile (src directory).
My current Makefile (src directory) is very simple. It looks like this.
CC = gcc
CFLAGS = -Wall
OBJS = main.o
all: smartAP
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
smartAP: $(OBJS)
$(CC) -o $@ $(OBJS)
clean:
rm -f smartAP *.o
Please let me know how to include the dependencies on other packages, so that build goes through.