Revisió dbd4db87
Afegit per Pau Escrich fa més de 14 anys
| Makefile | ||
|---|---|---|
|
MY_CONFIGS = $(BUILD_DIR)/configs
|
||
|
IMAGES = images
|
||
|
SHELL = bash
|
||
|
QMP_FEED = package/feeds/qmp_packages
|
||
|
J ?= 1
|
||
|
V ?= 0
|
||
|
T =
|
||
| ... | ... | |
|
CONFIG = $(BUILD_DIR)/$(T)/.config
|
||
|
KCONFIG = $(BUILD_DIR)/$(T)/target/linux/$(ARCH)/config-*
|
||
|
|
||
|
.PHONY: checkout update clean config menuconfig kernel_menuconfig list_targets build
|
||
|
.PHONY: checkout update clean config menuconfig kernel_menuconfig list_targets build clean_qmp
|
||
|
|
||
|
define build_src
|
||
|
cd $(BUILD_DIR)/$(T) && $(MAKE_SRC)
|
||
| ... | ... | |
|
rm -f .checkout_$(T) 2>/dev/null || true
|
||
|
endef
|
||
|
|
||
|
define clean_pkg
|
||
|
echo "Cleaning package $1"
|
||
|
make $1/clean
|
||
|
endef
|
||
|
|
||
|
define target_error
|
||
|
@echo "You must specify target using T var (make T=alix build)"
|
||
|
@echo "To see avialable targets run: make list_targets"
|
||
| ... | ... | |
|
clean:
|
||
|
$(if $(T),$(call clean_target),$(call clean_all))
|
||
|
|
||
|
clean_qmp:
|
||
|
cd $(BUILD_DIR)/$(T) ; \
|
||
|
for d in $(QMP_FEED)/*; do make $$d/clean ; done
|
||
|
|
||
|
list_targets:
|
||
|
$(info $(HW_AVAILABLE))
|
||
|
@exit 0
|
||
| README | ||
|---|---|---|
|
[qmpfw]
|
||
|
|
||
|
Qmpfw is a tool for developers to create a development enviroment for qMp.
|
||
|
|
||
|
Basically it consists in one Makefile, so it is called using "make" command.
|
||
|
|
||
|
Read Only URL: http://qmp.cat/git/qmpfw.git
|
||
|
Developer URL: ssh://gitosis@qmp.cat:221/qmpfw.git
|
||
|
|
||
|
** Download the code
|
||
|
|
||
|
Read Only URL:
|
||
|
http://qmp.cat/git/qmpfw.git
|
||
|
|
||
|
Developer URL:
|
||
|
ssh://gitosis@qmp.cat:221/qmpfw.git
|
||
|
*Directory structure
|
||
|
|
||
|
There are several directories and files. This is the functionallity for each of them:
|
||
|
|
||
|
** Directory structure
|
||
|
Makefile: the main makefile
|
||
|
|
||
|
There are several directories. This is the functionallity for each of them:
|
||
|
targets.mk: file which contains all information related with targets. If you want to add a new supported device you must edit it
|
||
|
|
||
|
build: here you will have all needed sources
|
||
|
|
||
| ... | ... | |
|
dl: download folder for OpenWRT packages
|
||
|
|
||
|
configs: config files for each kind of hardware. These are the default ones provided by qmpfw
|
||
|
|
||
|
images: output directory for images compiled by qmpfw
|
||
|
|
||
|
** Command options
|
||
|
images: output directory for compiled images, each of them has a different timestamp, so you can have as many as you want
|
||
|
|
||
|
*Command options
|
||
|
|
||
|
To compile a qMp image from scratch, you need to specify the target (next example with target=rspro):
|
||
|
This command will run all necessary commands to compile the image. After the compilation you can see the OpenWRT code in directory: build/[target]
|
||
| ... | ... | |
|
|
||
|
make list_targets
|
||
|
|
||
|
To update targets (this will update qmp and eigennet feeds, not openwrt source):
|
||
|
This will update all targets
|
||
|
|
||
|
make update
|
||
|
(this will update qmp and eigennet feeds, not openwrt source)
|
||
|
|
||
|
This will update only rspro target
|
||
|
|
||
| ... | ... | |
|
|
||
|
make T=rspro kernel_menuconfig
|
||
|
|
||
|
To run the initial checkout:
|
||
|
|
||
|
make T=rspro checkout
|
||
|
|
||
|
To clean specific target:
|
||
|
|
||
|
make T=rspro clean
|
||
| ... | ... | |
|
|
||
|
make clean
|
||
|
|
||
|
To clean just qmp packages from a target
|
||
|
|
||
|
make T=rspro clean_qmp
|
||
|
|
||
|
To configure some general parameters from qMp you can run:
|
||
|
|
||
|
make config
|
||
|
|
||
|
TODO: This feature is missing
|
||
|
|
||
|
|
||
|
|
||
També disponible a: Unified diff
Added new feature clean_qmp, to clean only qmp packages