Pandora port: Fix permissions before creating the .pnd archive
[maemo-rb.git] / packaging / pandora / pandora.make
blobc0a0ef991dfec185412c113153ae714098fe3800
1 PANDORA_DIR=$(ROOTDIR)/packaging/pandora
2 PND_MAKE=/usr/local/angstrom/arm/scripts/pnd_make
3 PND_BUILD_DIR=pnddir
5 pnddir:
6 mkdir $(PND_BUILD_DIR)
8 pnd: pnddir $(PND_MAKE) $(DEPFILE) build
9 # Creating PND file
10 make PREFIX=$(PND_BUILD_DIR)/rockbox fullinstall
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)
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/*
24 # Add docs folder
25 cp -rf $(ROOTDIR)/docs $(PND_BUILD_DIR)
27 # Fix up permissions
28 chmod -R a+r $(PND_BUILD_DIR)
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