| .. | .. | 
|---|
| 3 | 3 |  # Makefile for the Linux BPFILTER layer. | 
|---|
| 4 | 4 |  # | 
|---|
| 5 | 5 |   | 
|---|
| 6 |  | -hostprogs-y := bpfilter_umh  | 
|---|
 | 6 | +userprogs := bpfilter_umh  | 
|---|
| 7 | 7 |  bpfilter_umh-objs := main.o | 
|---|
| 8 |  | -KBUILD_HOSTCFLAGS += -I. -Itools/include/ -Itools/include/uapi  | 
|---|
| 9 |  | -HOSTCC := $(CC)  | 
|---|
 | 8 | +userccflags += -I $(srctree)/tools/include/ -I $(srctree)/tools/include/uapi  | 
|---|
| 10 | 9 |   | 
|---|
| 11 | 10 |  ifeq ($(CONFIG_BPFILTER_UMH), y) | 
|---|
| 12 |  | -# builtin bpfilter_umh should be compiled with -static  | 
|---|
 | 11 | +# builtin bpfilter_umh should be linked with -static  | 
|---|
| 13 | 12 |  # since rootfs isn't mounted at the time of __init | 
|---|
| 14 | 13 |  # function is called and do_execv won't find elf interpreter | 
|---|
| 15 |  | -KBUILD_HOSTLDFLAGS += -static  | 
|---|
 | 14 | +userldflags += -static  | 
|---|
| 16 | 15 |  endif | 
|---|
| 17 | 16 |   | 
|---|
| 18 | 17 |  $(obj)/bpfilter_umh_blob.o: $(obj)/bpfilter_umh | 
|---|