Skip to content

Commit 9563e24

Browse files
miguelinuxjren1
authored andcommitted
samples: move samples to specifi platform diretory
Move the platform apl-mrb samples to devicemodel samples directory. Add the install target to the missing samples files and re-organize the samples directory structure to have nuc and apl-mrb samples. Suggested-by: Arzhan Kinzhalin <arzhan.i.kinzhalin@intel.com> Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
1 parent d3ef8ae commit 9563e24

File tree

8 files changed

+15
-13
lines changed

8 files changed

+15
-13
lines changed

devicemodel/Makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ DISTCLEAN_OBJS := $(shell find $(BASEDIR) -name '*.o')
114114

115115
PROGRAM := acrn-dm
116116

117-
SAMPLES := $(wildcard samples/*)
117+
SAMPLES_NUC := $(wildcard samples/nuc/*)
118+
SAMPLES_MRB := $(wildcard samples/apl-mrb/*)
118119

119120
all: include/version.h $(PROGRAM)
120121
@echo -n ""
@@ -157,9 +158,11 @@ $(DM_OBJDIR)/%.o: %.c $(HEADERS)
157158
[ ! -e $@ ] && mkdir -p $(dir $@); \
158159
$(CC) $(CFLAGS) -c $< -o $@
159160

160-
install: $(DM_OBJDIR)/$(PROGRAM) install-samples
161-
install -D $(DM_OBJDIR)/$(PROGRAM) $(DESTDIR)/usr/bin/$(PROGRAM)
161+
install: $(DM_OBJDIR)/$(PROGRAM) install-samples-nuc install-samples-mrb
162+
install -D --mode=0755 $(DM_OBJDIR)/$(PROGRAM) $(DESTDIR)/usr/bin/$(PROGRAM)
162163

163-
install-samples: $(SAMPLES)
164-
install -d $(DESTDIR)/usr/share/acrn/demo
165-
install -t $(DESTDIR)/usr/share/acrn/demo $^
164+
install-samples-nuc: $(SAMPLES_NUC)
165+
install -D -t $(DESTDIR)/usr/share/acrn/samples/nuc $^
166+
167+
install-samples-mrb: $(SAMPLES_MRB)
168+
install -D -t $(DESTDIR)/usr/share/acrn/samples/apl-mrb $^
File renamed without changes.

doc/getting_started/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ partition. Follow these steps:
176176

177177
.. code-block:: none
178178
179-
# cp /usr/share/acrn/demo/acrn.conf /mnt/loader/entries/
179+
# cp /usr/share/acrn/samples/nuc/acrn.conf /mnt/loader/entries/
180180
181181
You will need to edit this file to adjust the kernel version (``linux`` section)
182182
and also insert the ``PARTUUID`` of your ``/dev/sda3`` partition
@@ -232,12 +232,12 @@ folder) as shown here:
232232
:caption: devicemodel/samples/bridge.sh
233233
:language: bash
234234

235-
By default, the script is located in the ``/usr/share/acrn/demo/``
235+
By default, the script is located in the ``/usr/share/acrn/samples/nuc/``
236236
directory. Run it to create a network bridge:
237237

238238
.. code-block:: none
239239
240-
# cd /usr/share/acrn/demo/
240+
# cd /usr/share/acrn/samples/nuc/
241241
# ./bridge.sh
242242
# cd
243243
@@ -295,12 +295,12 @@ Set up Reference UOS
295295
name on the second line highlighted (check the exact name to be used using:
296296
``ls /usr/lib/kernel/org.clearlinux*-standard*``).
297297

298-
By default, the script is located in the ``/usr/share/acrn/demo/``
298+
By default, the script is located in the ``/usr/share/acrn/samples/nuc/``
299299
directory. You can edit it there, and then run it to launch the User OS:
300300

301301
.. code-block:: none
302302
303-
# cd /usr/share/acrn/demo/
303+
# cd /usr/share/acrn/samples/nuc/
304304
# ./launch_uos.sh
305305
306306
#. At this point, you've successfully booted the ACRN hypervisor,

hypervisor/bsp/uefi/efi/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ $(EFI_OBJDIR)/boot.so: $(ACRN_OBJS) $(FS)
102102
$(LD) $(LDFLAGS) -o $@ $^ -lgnuefi -lefi $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
103103

104104
install-conf: $(CONF_FILE)
105-
install -d $(DESTDIR)/usr/share/acrn/demo
106-
install -t $(DESTDIR)/usr/share/acrn/demo -m 644 $^
105+
install -D --mode=0644 $^ $(DESTDIR)/usr/share/acrn/samples/nuc/acrn.conf
107106

108107
clean:
109108
rm -f $(BOOT) $(HV_OBJDIR)/$(HV_FILE).efi $(EFI_OBJDIR)/boot.so $(ACRN_OBJS) $(FS)

0 commit comments

Comments
 (0)