blob: c0a0ef991dfec185412c113153ae714098fe3800 [file] [log] [blame]
Thomas Jarosch986a92f2011-06-09 20:58:03 +00001PANDORA_DIR=$(ROOTDIR)/packaging/pandora
2PND_MAKE=/usr/local/angstrom/arm/scripts/pnd_make
3PND_BUILD_DIR=pnddir
4
5pnddir:
6 mkdir $(PND_BUILD_DIR)
7
8pnd: 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 Jarosch3d842c62012-12-26 00:46:49 +010018 # 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 Jarosch986a92f2011-06-09 20:58:03 +000024 # Add docs folder
25 cp -rf $(ROOTDIR)/docs $(PND_BUILD_DIR)
26
Thomas Jarosch4effd862012-12-26 00:48:06 +010027 # Fix up permissions
28 chmod -R a+r $(PND_BUILD_DIR)
29
Thomas Jarosch986a92f2011-06-09 20:58:03 +000030 # 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