Hi all,

Where are defined the environment variables that can be used in a openwrt package Makefile? Actually, I'm writing a Makefile to compile a realtek wireless kernel module for my Raspberry PI 2B (brcm2708) and I need to pass extra flags (like -DCONFIG_LITTLE_ENDIAN), but I want these flags to be pass dynamically based on the target platform like the following:

ifeq ($(TARGET_PLATFORM), brcm2708)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
endif

This is really a noobie question sorry but I'm not able to find suitable documentation and I'm really new to openwrt.

Thank you very much!!!

(Last edited by lionel.h on 11 Nov 2017, 22:44)