mirror of
https://gitee.com/open-loongarch/buildroot.git
synced 2026-10-25 12:57:11 +08:00
26 lines
726 B
Makefile
26 lines
726 B
Makefile
################################################################################
|
|
#
|
|
# swconfig
|
|
#
|
|
################################################################################
|
|
|
|
SWCONFIG_VERSION = 20150806
|
|
SWCONFIG_SITE = $(call github,rains31,swconfig,$(SWCONFIG_VERSION))
|
|
SWCONFIG_LICENSE = GPL-2.0
|
|
SWCONFIG_DEPENDENCIES = libnl
|
|
|
|
# redefine original CFLAGS as it points directly to /usr/include
|
|
SWCONFIG_MAKE_ENV = CC="$(TARGET_CC)" \
|
|
CFLAGS="-I. -I$(STAGING_DIR)/usr/include/libnl3"
|
|
|
|
define SWCONFIG_BUILD_CMDS
|
|
$(SWCONFIG_MAKE_ENV) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
endef
|
|
|
|
define SWCONFIG_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) DESTDIR="$(TARGET_DIR)" $(MAKE) -C $(@D) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
|