* [Buildroot] AT91SAM9260DFC - Skeleton not copied properly
@ 2008-04-30 5:57 Alex Parkinson
2008-04-30 16:50 ` Alex Parkinson
0 siblings, 1 reply; 2+ messages in thread
From: Alex Parkinson @ 2008-04-30 5:57 UTC (permalink / raw)
To: buildroot
Hi,
I'm trying to get a root filesystem built properly using Buildroot
rev. 21876, but the target_skeleton directory doesn't seem to be
copied properly into the working root directory. The project makes
without any critical errors, but when I examine the root filesystem,
there's quite a bit missing. For instance, the only directories in
root are bin, dev, etc, home, lib, sbin, tmp, and usr, plus the
linuxrc link. Similarly, the few directories that do exist aren't
full populated. The etc directory only has the files br-version,
hostname, issue, ld.so.cache, and the network directory. I examined
the target_skeleton directories (target/generic and target/device/
Atmel/root), and they seem to be fully in tact, so it seems that the
skeleton isn't being copied into the build directory properly. Does
anyone have an idea what could be causing this? I've tried to figure
out where the skeleton is copied over (is it the $(BUILD_DIR)/.root
target in the base Makefile?), but that didn't really get me
anywhere. I'm not sure what else I can do to debug this. Any and
all help is greatly appreciated.
Cheers,
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] AT91SAM9260DFC - Skeleton not copied properly
2008-04-30 5:57 [Buildroot] AT91SAM9260DFC - Skeleton not copied properly Alex Parkinson
@ 2008-04-30 16:50 ` Alex Parkinson
0 siblings, 0 replies; 2+ messages in thread
From: Alex Parkinson @ 2008-04-30 16:50 UTC (permalink / raw)
To: buildroot
On Apr 30, 2008, at 1:57 AM, Alex Parkinson wrote:
> I'm trying to get a root filesystem built properly using Buildroot
> rev. 21876, but the target_skeleton directory doesn't seem to be
> copied properly into the working root directory. The project makes
> without any critical errors, but when I examine the root
> filesystem, there's quite a bit missing. For instance, the only
> directories in root are bin, dev, etc, home, lib, sbin, tmp, and
> usr, plus the linuxrc link. Similarly, the few directories that do
> exist aren't full populated. The etc directory only has the files
> br-version, hostname, issue, ld.so.cache, and the network
> directory. I examined the target_skeleton directories (target/
> generic and target/device/Atmel/root), and they seem to be fully in
> tact, so it seems that the skeleton isn't being copied into the
> build directory properly. Does anyone have an idea what could be
> causing this? I've tried to figure out where the skeleton is
> copied over (is it the $(BUILD_DIR)/.root target in the base
> Makefile?), but that didn't really get me anywhere. I'm not sure
> what else I can do to debug this. Any and all help is greatly
> appreciated.
Okay, I've determined the cause of my problem. The target skeleton
is not copied into the new root filesystem if the .root file exists
in the project build directory. This is to prevent the skeleton from
being copied to the root filesystem on every build. I must have
removed the root directory at some point without also removing
the .root file. I think my confusion was exacerbated by the fact
that the .root file isn't deleted when 'make clean' is run. I've
created a patch to remove the .root file when 'make clean' is run.
Let me know if this is not the proper way to do it, or if there's
another way to solve it.
Cheers,
Alex
--- old/Makefile 2008-04-30 12:27:35.000000000 -0400
+++ new/Makefile 2008-04-30 12:39:38.000000000 -0400
@@ -353,6 +353,7 @@
#############################################################
clean: $(TARGETS_CLEAN)
rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE)
+ rm -f $(PROJECT_BUILD_DIR)/.root
dirclean: $(TARGETS_DIRCLEAN)
rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-30 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-30 5:57 [Buildroot] AT91SAM9260DFC - Skeleton not copied properly Alex Parkinson
2008-04-30 16:50 ` Alex Parkinson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox