diff options
author | Thomas Jarosch <tomj@simonv.com> | 2011-06-09 20:58:03 +0000 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2011-06-09 20:58:03 +0000 |
commit | 986a92fe6667d1946f0017570abfa1487157be70 (patch) | |
tree | 83dde3a202c9ee9a2094d11ab12d3e8f834b3672 | |
parent | 6c571361fffccc7881f43fe7e93757bb8e255546 (diff) |
Pandora port: Automate rockbox.pnd (=binary archive) build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29991 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | packaging/pandora/pandora.make | 22 | ||||
-rw-r--r-- | tools/root.make | 7 |
2 files changed, 28 insertions, 1 deletions
diff --git a/packaging/pandora/pandora.make b/packaging/pandora/pandora.make new file mode 100644 index 0000000000..de767d4e8a --- /dev/null +++ b/packaging/pandora/pandora.make @@ -0,0 +1,22 @@ +PANDORA_DIR=$(ROOTDIR)/packaging/pandora +PND_MAKE=/usr/local/angstrom/arm/scripts/pnd_make +PND_BUILD_DIR=pnddir + +pnddir: + mkdir $(PND_BUILD_DIR) + +pnd: pnddir $(PND_MAKE) $(DEPFILE) build + # Creating PND file + make PREFIX=$(PND_BUILD_DIR)/rockbox fullinstall + + # Install Pandora build files + cp $(PANDORA_DIR)/PXML.xml $(PND_BUILD_DIR) + cp $(PANDORA_DIR)/rockbox.png $(PND_BUILD_DIR) + cp $(PANDORA_DIR)/rockbox_preview.jpg $(PND_BUILD_DIR) + cp $(PANDORA_DIR)/run_rockbox.sh $(PND_BUILD_DIR) + + # Add docs folder + cp -rf $(ROOTDIR)/docs $(PND_BUILD_DIR) + + # Invoke pndmake + $(PND_MAKE) -p rockbox.pnd -d $(PND_BUILD_DIR) -x $(PND_BUILD_DIR)/PXML.xml -i $(PND_BUILD_DIR)/rockbox.png -c diff --git a/tools/root.make b/tools/root.make index b5889967d5..a54d77891a 100644 --- a/tools/root.make +++ b/tools/root.make @@ -105,7 +105,11 @@ else ifneq (,$(findstring android, $(APP_TYPE))) include $(ROOTDIR)/android/android.make endif - + + ifneq (,$(findstring pandora, $(MODELNAME))) + include $(ROOTDIR)/packaging/pandora/pandora.make + endif + endif # bootloader OBJ := $(SRC:.c=.o) @@ -341,6 +345,7 @@ help: @echo "fontzip - creates rockbox-fonts.zip" @echo "mapzip - creates rockbox-maps.zip with all .map files" @echo "elfzip - creates rockbox-elfs.zip with all .elf files" + @echo "pnd - creates rockbox.pnd archive (Pandora builds only)" @echo "tools - builds the tools only" @echo "voice - creates the voice clips (voice builds only)" @echo "voicetools - builds the voice tools only" |