summaryrefslogtreecommitdiff
path: root/packaging/pandora/pandora.make
blob: de767d4e8a595ee3b770520d76e35ee50d51b72b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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