Projecte

General

Perfil

« Anterior | Següent » 

Revisió 4ecdf50f

Afegit per Roger Pueyo Centelles fa aproximadament 8 anys

[multiprofile] Convert ar71xx-generic and ramips-mt7620 to multiprofile and start Makefile adaption

Visualitza les diferències:

Makefile
# [qMp] firmware generator (http://qmp.cat)
# Copyright (C) 2011-2015 Routek S.L. (http://routek.net)
# Copyright (C) 2011-2016 Routek S.L. (http://routek.net)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......
J ?= 1
V ?= 0
T ?= ar71xx
MPT ?= ar71xx-generic-mp
MAKE_SRC = -j$(J) V=$(V)
IMAGEOPT ?= true
......
COMMUNITY ?= qMp
EXTRA_PACKS =
include targets.mk
TINYPKG ?= qmp-tiny-node
SMALLPKG ?= qmp-small-node
BIGPKG ?= qmp-big-node
include targets.mk mp-targets.mk
PROFILE ?= ath-qmp-tiny-node
TIMESTAMP = $(shell date +%Y%m%d-%H%M)
......
#Define TARGET_CONFIGS and TARGET
$(eval $(if $(TARGET_MASTER),TARGET_CONFIGS=$(TARGET_MASTER),TARGET_CONFIGS=$(T)))
$(eval $(if $(TARGET),,TARGET=$(T)))
$(eval $(if $(MPTARGET),,MPTARGET=$(MPT)))
#Define BUILD_PATH based on TBUILD (defined in targets.mk)
$(eval $(if $(TBUILD),,TBUILD=$(TARGET)))
......
define update_feeds
@echo "Updating feed $(1)"
./$(BUILD_DIR)/$(1)/scripts/feeds update -a
./$(BUILD_DIR)/$(1)/scripts/feeds install -a
endef
......
cp -f $(CONFIG) $(MY_CONFIGS)/$(TARGET)/config
endef
define mp-target-config
cp -f $(CONFIG_DIR)/$(ARCH)-$(SUBARCH)-multiprofile mpconfig
@for DEVICE in $(TINY); do \
echo $(DEVPKG)$$DEVICE=\"$(TINYPKG)\" >> mpconfig ;\
done
@for DEVICE in $(SMALL); do \
echo $(DEVPKG)$$DEVICE=\"$(SMALLPKG)\" >> mpconfig ; \
done
@for DEVICE in $(BIG); do \
echo $(DEVPKG)$$DEVICE=\"$(BIGPKG)\" >> mpconfig ; \
done
endef
define kmenuconfig_owrt
make -C $(BUILD_PATH) kernel_menuconfig
mkdir -p $(MY_CONFIGS)/$(TARGET)
......
menuconfig: checkout sync_config
$(call menuconfig_owrt)
mp-target-config:
$(call mp-target-config)
kernel_menuconfig: checkout sync_config
$(call kmenuconfig_owrt)

També disponible a: Unified diff