Thomas Jarosch | 986a92f | 2011-06-09 20:58:03 +0000 | [diff] [blame] | 1 | PANDORA_DIR=$(ROOTDIR)/packaging/pandora |
| 2 | PND_MAKE=/usr/local/angstrom/arm/scripts/pnd_make |
| 3 | PND_BUILD_DIR=pnddir |
| 4 | |
| 5 | pnddir: |
| 6 | mkdir $(PND_BUILD_DIR) |
| 7 | |
| 8 | pnd: pnddir $(PND_MAKE) $(DEPFILE) build |
| 9 | # Creating PND file |
| 10 | make PREFIX=$(PND_BUILD_DIR)/rockbox fullinstall |
| 11 | |
| 12 | # Install Pandora build files |
| 13 | cp $(PANDORA_DIR)/PXML.xml $(PND_BUILD_DIR) |
| 14 | cp $(PANDORA_DIR)/rockbox.png $(PND_BUILD_DIR) |
| 15 | cp $(PANDORA_DIR)/rockbox_preview.jpg $(PND_BUILD_DIR) |
| 16 | cp $(PANDORA_DIR)/run_rockbox.sh $(PND_BUILD_DIR) |
| 17 | |
Thomas Jarosch | 3d842c6 | 2012-12-26 00:46:49 +0100 | [diff] [blame] | 18 | # Remove stuff that's broken because of missing keymapping. |
| 19 | # Otherwise the user will have a hard time to shut down rockbox |
| 20 | rm -f $(PND_BUILD_DIR)/rockbox/lib/rockbox/rocks/apps/* |
| 21 | rm -f $(PND_BUILD_DIR)/rockbox/lib/rockbox/rocks/demos/* |
| 22 | rm -f $(PND_BUILD_DIR)/rockbox/lib/rockbox/rocks/games/* |
| 23 | |
Thomas Jarosch | 986a92f | 2011-06-09 20:58:03 +0000 | [diff] [blame] | 24 | # Add docs folder |
| 25 | cp -rf $(ROOTDIR)/docs $(PND_BUILD_DIR) |
| 26 | |
Thomas Jarosch | 4effd86 | 2012-12-26 00:48:06 +0100 | [diff] [blame] | 27 | # Fix up permissions |
| 28 | chmod -R a+r $(PND_BUILD_DIR) |
| 29 | |
Thomas Jarosch | 986a92f | 2011-06-09 20:58:03 +0000 | [diff] [blame] | 30 | # Invoke pndmake |
| 31 | $(PND_MAKE) -p rockbox.pnd -d $(PND_BUILD_DIR) -x $(PND_BUILD_DIR)/PXML.xml -i $(PND_BUILD_DIR)/rockbox.png -c |